Sinespace Client
2023.2.17543
Client-side scripting for Sinespace
|
Public Member Functions | |
object | GetVariable (string name) |
Return the object of the variable. More... | |
void | SetVariable (string name, DynValue property, bool persistent=false) |
Set the "property" to variable More... | |
Properties | |
bool | Enabled [get, set] |
Return whether the ScriptingData component is Enabled or not More... | |
string | ComponentName [get] |
Return the component name of the scripting data More... | |
string[] | Variables [get] |
This return a list of variables More... | |
Properties inherited from ScriptClassComponent< ScriptingDataBaseInternal > | |
SGameObject | GameObject [get] |
Return the GameObject which component added. More... | |
object SineSpace.Scripting.Components.SScriptingData.GetVariable | ( | string | name | ) |
Return the object of the variable.
name | The name of variable |
void SineSpace.Scripting.Components.SScriptingData.SetVariable | ( | string | name, |
DynValue | property, | ||
bool | persistent = false |
||
) |
Set the "property" to variable
name | |
property | The value in a lua/MoonSharp script |
persistent |
|
get |
Return the component name of the scripting data
|
getset |
Return whether the ScriptingData component is Enabled or not
|
get |
This return a list of variables