Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
|
Public Member Functions | |
SResource | GetResource (string name) |
Get the resource by its name and return it. | |
void | CallScriptFunction (string name, params DynValue[] arguments) |
Calls registered script function with specified arguments Function will be called at the start of their next execution context, which may be in the next frame. | |
void | CallScriptFunction (string name) |
void | Reset () |
Resets the event members to their initial values. | |
object | GetPublicVariable (string name) |
Gets the public variable by its name and return it. | |
void | SetPublicVariable (string name, DynValue property, bool persistent=false) |
Set the property to public variable with name "name" and whether to change persistent. | |
void | InvokeEvent (string name) |
Invokes the event with the name "name". | |
![]() | |
override void | Initialise (SScript runtime, object wrapper) |
![]() | |
void | ReportError (string error, bool fatal, UnityEngine.Object target=null) |
void | Initialise (SScript runtime, object wrapper) |
Properties | |
string | ComponentName [get] |
Return the component name of the scripting runtime. | |
SResource[] | Resources [get] |
Return a list of resource. | |
bool | Enabled [get, set] |
Whether the scriptingRuntime component is enabled or not. | |
![]() | |
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) |
void SineSpace.Scripting.Components.SScriptingRuntime.CallScriptFunction | ( | string | name | ) |
void SineSpace.Scripting.Components.SScriptingRuntime.CallScriptFunction | ( | string | name, |
params DynValue[] | arguments ) |
Calls registered script function with specified arguments Function will be called at the start of their next execution context, which may be in the next frame.
name | The name of function |
arguments | The parameters of the function need |
summary> Call registered script function Function will be called at the start of their next execution context, which may be in the next frame. /summary>
param name="name">The name of function
object SineSpace.Scripting.Components.SScriptingRuntime.GetPublicVariable | ( | string | name | ) |
Gets the public variable by its name and return it.
name | The name of public variable |
SResource SineSpace.Scripting.Components.SScriptingRuntime.GetResource | ( | string | name | ) |
Get the resource by its name and return it.
name | The name of resource |
void SineSpace.Scripting.Components.SScriptingRuntime.InvokeEvent | ( | string | name | ) |
Invokes the event with the name "name".
name | The name of event |
void SineSpace.Scripting.Components.SScriptingRuntime.Reset | ( | ) |
Resets the event members to their initial values.
void SineSpace.Scripting.Components.SScriptingRuntime.SetPublicVariable | ( | string | name, |
DynValue | property, | ||
bool | persistent = false ) |
Set the property to public variable with name "name" and whether to change persistent.
name | The name of public variable |
property | Represent a value in a Lua/MoonSharp script. |
persistent | whether to change persistent |
|
get |
Return the component name of the scripting runtime.
|
getset |
Whether the scriptingRuntime component is enabled or not.
|
get |
Return a list of resource.