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
-
Function: Represents a function that can be called from Yarn programs. -
ReturningFunction: Represents a function that can be called from Yarn programs that returns a function.
Source
Defined in YarnSpinner/Library.cs, line 43.