Method Get
Get<T>(string, string)
Retrieves a strongly-typed ScriptVariable<T> associated with a given aura and variable name.
Declaration
ScriptVariable<T> Get<T>(string itemPath, string variableName)
Parameters
Type | Name | Description |
---|---|---|
string | itemPath | The path identifying the aura. |
string | variableName | The name of the variable. |
Returns
Type | Description |
---|---|
ScriptVariable<T> | A strongly-typed ScriptVariable<T> instance. |
Type Parameters
Name | Description |
---|---|
T | The type of the variable's value. |
Get<T>(IHasVariables, string)
Retrieves a strongly-typed ScriptVariable<T> from a specific source that implements IHasVariables.
Declaration
ScriptVariable<T> Get<T>(IHasVariables source, string variableName)
Parameters
Type | Name | Description |
---|---|---|
IHasVariables | source | The source object containing the variable. |
string | variableName | The name of the variable. |
Returns
Type | Description |
---|---|
ScriptVariable<T> | A strongly-typed ScriptVariable<T> instance. |
Type Parameters
Name | Description |
---|---|
T | The type of the variable's value. |