wiki.sine.space | sinespace

Scripting/ScriptClass

From wiki.sine.space
Jump to: navigation, search

Properties

GameObject

SGameObject GameObject {get;}

Return the GameObject which component added.

collider = Space.Scene.Find("Cube").Collider

--get the sample component collider here.
obj = collider.GameObject
--get the game object from collider component.
Space.Log(obj.Name)

--output name of the component added.



Alive

bool Alive {get;}

Return if the component is alive.

collider = Space.Scene.Find("Cube").Collider

--get the sample component collider here.
obj = collider.GameObject
--get the game object from collider component.
Space.Log(obj.Alive)

--print true to console.