Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
|
Public Member Functions | |
object | GetVariable (string name) |
Return the object of the variable. | |
void | SetVariable (string name, DynValue property, bool persistent=false) |
Set the "property" to variable. | |
![]() | |
override void | Initialise (SScript runtime, object wrapper) |
![]() | |
void | ReportError (string error, bool fatal, UnityEngine.Object target=null) |
void | Initialise (SScript runtime, object wrapper) |
Properties | |
bool | Enabled [get, set] |
Return whether the ScriptingData component is Enabled or not. | |
string | ComponentName [get] |
Return the component name of the scripting data. | |
string[] | Variables [get] |
This return a list of variables. | |
![]() | |
SGameObject | GameObject [get] |
Return the GameObject which component added. | |
![]() | |
override bool | Alive [get] |
Return if the component is alive. | |
![]() | |
T | _wrap [get] |
![]() | |
virtual bool | Alive [get] |
DynValue | CachedData [get, set] |
Additional Inherited Members | |
![]() | |
void | Initialise (SScript runtime) |
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.