| Parameter | Description |
|---|---|
| name | The name of the variable. |
| valueType | The data type of the variable. |
| defaultValue | The default value. Must be compatible with and work with Unity serialization rules for SerializeField. |
| kind | The kind of variable, defined by VariableKind. |
IVariable The newly created variable.
Creates and adds a new variable to the graph.
If the variable is successfully created, its type is automatically added to the graph's list of supported types.
| Parameter | Description |
|---|---|
| name | The name of the variable. |
| defaultValue | The default value. Must be compatible with T and work with Unity serialization rules for SerializeField. |
| kind | The kind of variable, defined by VariableKind. |
IVariable The newly created variable.
Creates and adds a new variable to the graph.
If the variable is successfully created, its type is automatically added to the graph's list of supported types.