Sinespace Client
2023.2.17543
Client-side scripting for Sinespace
|
Public Member Functions | |
SHost (SScript sScript) | |
void | InvokeEvent (string name) |
Invokes a UnityEvent attached to the Scripting Runtime component this script is executing in. More... | |
void | Stop () |
Pauses the current script until it is manually restarted, at the end of the current function/method; consider using return as well More... | |
void | InvokeDelayed (Closure c, float delay) |
Invoke the closure after the delayed time More... | |
void | StartCoroutine (DynValue value, DynValue parameter=default(DynValue), string name=null) |
Executes the specified function as a coroutine. More... | |
void | StartCoroutine (string value, DynValue parameter=default(DynValue), string name=null) |
bool | ReferenceExists (string name) |
Return true when the reference object exists. More... | |
bool | ReferenceExistsAndNotEmpty (string name) |
Return true when the reference object exists and is not empty More... | |
SGameObject | GetReference (string name) |
Return SGameObject which attach to the reference with the correct name. More... | |
void | Evaluate (string script) |
Evaluates and returns arbitrary Lua scripts. Only availible on white label grids. More... | |
Properties | |
SGameObject | ExecutingObject [get] |
Returns the SGameObject this script is attached to More... | |
string | Language [get] |
Returns the English name for the user’s language, e.g., 'English', 'French', 'Chinese' More... | |
SineSpace.Scripting.Scene.SHost.SHost | ( | SScript | sScript | ) |
void SineSpace.Scripting.Scene.SHost.Evaluate | ( | string | script | ) |
Evaluates and returns arbitrary Lua scripts. Only availible on white label grids.
script |
SGameObject SineSpace.Scripting.Scene.SHost.GetReference | ( | string | name | ) |
Return SGameObject which attach to the reference with the correct name.
name | Name of reference |
void SineSpace.Scripting.Scene.SHost.InvokeDelayed | ( | Closure | c, |
float | delay | ||
) |
Invoke the closure after the delayed time
c | The closure you want to call |
delay | Delayed time |
void SineSpace.Scripting.Scene.SHost.InvokeEvent | ( | string | name | ) |
Invokes a UnityEvent attached to the Scripting Runtime component this script is executing in.
name | Event name |
bool SineSpace.Scripting.Scene.SHost.ReferenceExists | ( | string | name | ) |
Return true when the reference object exists.
name | Name of reference object |
bool SineSpace.Scripting.Scene.SHost.ReferenceExistsAndNotEmpty | ( | string | name | ) |
Return true when the reference object exists and is not empty
name | Name of reference object |
void SineSpace.Scripting.Scene.SHost.StartCoroutine | ( | DynValue | value, |
DynValue | parameter = default(DynValue) , |
||
string | name = null |
||
) |
Executes the specified function as a coroutine.
value | Function |
parameter | Resume time parameter |
name | Function name |
void SineSpace.Scripting.Scene.SHost.StartCoroutine | ( | string | value, |
DynValue | parameter = default(DynValue) , |
||
string | name = null |
||
) |
void SineSpace.Scripting.Scene.SHost.Stop | ( | ) |
Pauses the current script until it is manually restarted, at the end of the current function/method; consider using return as well
|
get |
Returns the SGameObject this script is attached to
|
get |
Returns the English name for the user’s language, e.g., 'English', 'French', 'Chinese'