This site is for Yarn Spinner v1, and won't be updated. Go to the current site.

FunctionInfo Class

Represents a function in a Library.

public class FunctionInfo

Remarks

You do not create instances of this class yourself. Instead, use the Library class’s RegisterFunction(String, Int32, Function) and RegisterFunction(String, Int32, ReturningFunction) methods to create new functions.

Methods

Name Description
Invoke(Value[]) Invokes this function.

Properties

Name Description
name The name of the function, as it exists in the script.
paramCount Gets and sets the number of parameters this function requires.
returnsValue Gets a value indicating whether this function returns a value or not.

See Also

Source

Defined in YarnSpinner/Library.cs, line 43.