Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
ScriptClass< T > Class Template Referenceabstract
Inheritance diagram for ScriptClass< T >:
ScriptClassWrapper< T > ScriptClassComponent< T > SineSpace.Scripting.Client.SDialogues SineSpace.Scripting.Client.SInput SineSpace.Scripting.Client.SShared SineSpace.Scripting.Client.STween SineSpace.Scripting.Client.SUI SineSpace.Scripting.Library.SMath SineSpace.Scripting.Library.SString SineSpace.Scripting.Network.SChat SineSpace.Scripting.Network.SNetwork SineSpace.Scripting.Network.SPhotos SineSpace.Scripting.Network.SVideos SineSpace.Scripting.Player.SGroup SineSpace.Scripting.Player.SInventory SineSpace.Scripting.Player.SProfile SineSpace.Scripting.Scene.SActivity SineSpace.Scripting.Scene.SCameraManager SineSpace.Scripting.Scene.SPersistence SineSpace.Scripting.Types.SMusicDirectory

Public Member Functions

void ReportError (string error, bool fatal, UnityEngine.Object target=null)
 
abstract void Initialise (SScript runtime, object wrapper)
 
- Public Member Functions inherited from ScriptClassWrapper< T >
override void Initialise (SScript runtime, object wrapper)
 

Protected Member Functions

void Initialise (SScript runtime)
 

Properties

override bool Alive [get]
 Return if the component is alive. More...
 
virtual bool Alive [get]
 
DynValue CachedData [get, set]
 
- Properties inherited from ScriptClassWrapper< T >
_wrap [get]
 

Member Function Documentation

◆ Initialise() [1/2]

void ScriptClass< T >.Initialise ( SScript  runtime)
protected

◆ Initialise() [2/2]

◆ ReportError()

void ScriptClass< T >.ReportError ( string  error,
bool  fatal,
UnityEngine.Object  target = null 
)

Property Documentation

◆ Alive [1/2]

override bool ScriptClass< T >.Alive
get

Return if the component is alive.

&ndash;get the sample component collider here
collider = Space.Scene.Find(“Cube”).Collider
obj = collider.GameObject
Space.Log(obj.Alive)
&ndash;print true to console.

◆ Alive [2/2]

virtual bool ScriptClass< T >.Alive
get

◆ CachedData

DynValue ScriptClass< T >.CachedData
getset