FunctionInfo Class

Represents a function in a Library.

public class FunctionInfo


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.


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


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


Defined in YarnSpinner/Library.cs, line 43.