Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

ISmartVariableEvaluator

Contains methods for evaluating the value of smart variables
public interface ISmartVariableEvaluator

#Methods

#TryGetSmartVariable<T>(string, T)

Evaluate the value of a smart variable named name.
bool TryGetSmartVariable<T>(string name, out T result);

Type Parameters

  • T
    The type of the returned value.

Parameters

  • namestring
    The name of the variable.
  • resultT
    On return, contains the returned value of the smart variable, or the default value of T if a smart variable named name could not be found or its value could not be returned as type T.

Returns Boolean: true if the smart variable was evaluated, false otherwise.

Generated from Yarn Spinner for Unity 3.3.