Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
ScriptClassComponent< T > Class Template Reference
Inheritance diagram for ScriptClassComponent< T >:
ScriptClass< T > ScriptClassWrapper< T > SineSpace.Scripting.Components.SRenderer< T > SineSpace.Scripting.Components.SUILayout< T >

Properties

SGameObject GameObject [get]
 Return the GameObject which component added. More...
 
- Properties inherited from ScriptClass< T >
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]
 

Additional Inherited Members

- Public Member Functions inherited from ScriptClass< T >
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 inherited from ScriptClass< T >
void Initialise (SScript runtime)
 

Property Documentation

◆ GameObject

SGameObject ScriptClassComponent< T >.GameObject
get

Return the GameObject which component added.

&ndash;get the sample component collider here
collider = Space.Scene.Find(“Cube”).Collider
&ndash;get the game object from collider component
obj = collider.GameObject
Space.Log(obj.Name)
&ndash;output name of the game object the component added to