Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
SineSpace.Scripting.Types.SGameObject Class Reference
Inheritance diagram for SineSpace.Scripting.Types.SGameObject:
ScriptClass< T > ScriptClassWrapper< T > ScriptClass

Public Member Functions

void SubscribeToEvents ()
 
int GetSiblingIndex ()
 
void SetSiblingIndex (int newIndex)
 
void SetAsFirstSibling ()
 
void SetAsLastSibling ()
 
SGameObject Duplicate ()
 Duplicates this Game Object (and any children and/or components)
 
SGameObject Instantiate ()
 Copy of Duplicate() for convenience.
 
SHingeJoint AddHingeJoint ()
 
SLight AddLight ()
 
SEventTrigger AddEventTrigger ()
 
SAnimator AddAnimator ()
 
SAudioSource AddAudioSource ()
 
SClickable AddClickable ()
 
SScriptingRuntime GetScript (string name)
 Returns a Scripting Runtime component attached to this object by Component Name, or nil if none exist.
 
List< SScriptingRuntimeGetScriptsInChildren (string name, bool includeInactive=false)
 Returns Scripting Runtime components attached to this object by Component Name or its children.
 
SScriptingRuntime GetScriptInChildren (string name, bool includeInactive=false)
 Returns a Scripting Runtime component attached to this object or its children by Component Name, or nil if none exist.
 
SScriptingRuntime GetScriptInParent (string name)
 Returns a Scripting Runtime component attached to this object or its parents by Component Name, or nil if none exist.
 
SScriptingEvents GetEvents (string name)
 Returns a Scripting Events component attached to this object by Component Name, or nil if none exist.
 
List< SScriptingEventsGetAllEventsInChildren (string name, bool includeInactive=false)
 Returns Scripting Events components attached to this object by Component Name or its children.
 
SScriptingEvents GetEventsInChildren (string name, bool includeInactive=false)
 Returns a Scripting Events component attached to this object or its children by Component Name, or nil if none exist.
 
SScriptingEvents GetEventsInParent (string name)
 Returns a Scripting Events component attached to this object or its parents by Component Name, or nil if none exist.
 
SScriptingResources GetResources (string name)
 Returns a Scripting Resources component attached to this object by Component Name, or nil if none exist.
 
List< SScriptingResourcesGetAllResourcesInChildren (string name, bool includeInactive=false)
 Returns Scripting Resources components attached to this object by Component Name or its children.
 
SScriptingResources GetResourcesInChildren (string name, bool includeInactive=false)
 Returns a Scripting Resources component attached to this object or its children by Component Name, or nil if none exist.
 
SScriptingResources GetResourcesInParent (string name)
 Returns a Scripting Resources component attached to this object or its parents by Component Name, or nil if none exist.
 
SScriptingData GetData (string name)
 Returns a Scripting Data component attached to this object by Component Name, or nil if none exist.
 
List< SScriptingDataGetAllDataInChildren (string name, bool includeInactive=false)
 Returns Scripting Data components attached to this object by Component Name or its children.
 
SScriptingData GetDataInChildren (string name, bool includeInactive=false)
 Returns a Scripting Data component attached to this object or its children by Component Name, or nil if none exist.
 
SScriptingData GetDataInParent (string name)
 Returns a Scripting Data component attached to this object or its parents by Component Name, or nil if none exist.
 
SRigidbody AddRigidbody ()
 
SNavMeshAgent AddNavMeshAgent ()
 
SSeat AddSeat ()
 
void OnAwake (Action e)
 Binds a new event handler for the On Awake event.
 
void OnAwake (Closure e)
 
void OnStart (Action e)
 Binds a new event handler for the On Start event.
 
void OnStart (Closure e)
 
void OnEnable (Action e)
 Binds a new event handler for the On Enable event.
 
void OnEnable (Closure e)
 
void OnDisable (Action e)
 Binds a new event handler for the On Disable event.
 
void OnDisable (Closure e)
 
void OnFixedUpdate (Action e)
 Binds a new event handler for the On Fixed Update event.
 
void OnFixedUpdate (Closure e)
 
void OnLateUpdate (Action e)
 Binds a new event handler for the On Late Update event.
 
void OnLateUpdate (Closure e)
 
void OnTriggerStart (Action< SGameObject > e)
 
void OnTriggerStart (Closure e)
 
void OnTriggerStay (Action< SGameObject > e)
 
void OnTriggerStay (Closure e)
 
void OnTriggerExit (Action< SGameObject > e)
 
void OnTriggerExit (Closure e)
 
void OnCollisionEnter (Action< SPhysicsHit > e)
 
void OnCollisionEnter (Closure e)
 
void OnCollisionStay (Action< SPhysicsHit > e)
 
void OnCollisionStay (Closure e)
 
void OnCollisionExit (Action< SPhysicsHit > e)
 
void OnCollisionExit (Closure e)
 
void OnParticleCollision (Action< SGameObject > e)
 
void OnParticleCollision (Closure e)
 
void OnParticleTrigger (Action e)
 Binds a new event handler for the OnParticleTrigger event.
 
void OnParticleTrigger (Closure e)
 
void OnUpdate (Action e)
 Binds a new event handler for the On Update event.
 
void OnUpdate (Closure e)
 
void OnMouseDown (Action e)
 Binds a new event handler for the On Mouse Down event (requires a collider on the object)
 
void OnMouseDown (Closure e)
 
void OnApplicationQuit (Action e)
 Binds a new event handler for the On Application Quit event.
 
void OnApplicationQuit (Closure e)
 
bool CompareTag (string tag)
 
void SetParent (SGameObject other, bool worldPositionStays=true)
 
SGameObject Find (string name)
 
SGameObject FindInChildren (string name)
 
void Destroy ()
 
SComponent GetComponent (string name)
 
- Public Member Functions inherited from ScriptClassWrapper< T >
override void Initialise (SScript runtime, object wrapper)
 
- Public Member Functions inherited from ScriptClass
void ReportError (string error, bool fatal, UnityEngine.Object target=null)
 
void Initialise (SScript runtime, object wrapper)
 

Properties

long Owner [get]
 
int LocalID [get]
 
int InventoryID [get]
 
bool HasStableID [get]
 
string GlobalID [get]
 
bool Exists [get]
 
SHingeJoint HingeJoint [get]
 Returns a HingeJoint component attached to this object, or nil if none exist.
 
SLight Light [get]
 Returns a Light component attached to this object, or nil if none exist.
 
SReflectionProbe ReflectionProbe [get]
 Returns a ReflectionProbe component attached to this object, or nil if none exist.
 
SLight LightInChild [get]
 Returns a Light component attached to this object or its children, or nil if none exist.
 
SLight LightInParent [get]
 Returns a Light component attached to this object or its children, or nil if none exist.
 
SAnimator Animator [get]
 Returns a Animator component attached to this object, or nil if none exist,GameObject have AvatarAnimator if.
 
SAnimation Animation [get]
 Returns an Animation component attached to this object, or nil if none exist Animation is a legacy component and should not be confused with Animator.
 
SCanvasGroup CanvasGroup [get]
 Returns an CanvasGroup component attached to this object, or nil if none exist.
 
SAudioSource Audio [get]
 Returns a Audio component attached to this object, or nil if none exist.
 
SRoomFloor Floor [get]
 Returns a RoomFloor component attached to this object, or nil if none exist.
 
SVoiceZone VoiceZone [get]
 Returns a VoiceZone component attached to this object, or nil if none exist.
 
SBrowserSurface Browser [get]
 Returns a Browser component attached to this object, or nil if none exist.
 
SPlayableDirector Director [get]
 Returns a PlayableDirector component attached to this object, or nil if none exist.
 
SMeshFilter MeshFilter [get]
 Returns a MeshFilter component attached to this object, or nil if none exist.
 
SRenderer< Renderer > Renderer [get]
 Returns a Renderer component attached to this object, or nil if none exist.
 
SModularVehicle Vehicle [get]
 Returns a Modular Vehicle component attached to this object, or nil if none exist.
 
SPostProcessVolume PostProcessVolume [get]
 Returns a Post Process Volume component attached to this object, or nil if none exist.
 
SAXModel Archimatix [get]
 Returns a Archimatix Model ("AXModel" component) - or Nil if nothing exists.
 
SClickable Clickable [get]
 Returns a Renderer component attached to this object, or nil if none exist.
 
SEmbeddedVideo EmbeddedVideo [get]
 Returns a Embedded Video component attached to this object, or nil if none exist.
 
SAvatar Avatar [get]
 
SAvatarAppearance AvatarAppearance [get]
 
new SScriptingRuntime Script [get]
 Returns a Scripting Runtime component attached to this object, or nil if none exist.
 
SEventTrigger EventTrigger [get]
 Returns a Unity Event Trigger component attached to this object, or nil if none exist.
 
SStateMachine StateMachine [get]
 Returns a Simple State Machine component attached to this object, or nil if none exist.
 
SNetworking Networking [get]
 Returns a Simple Networking component attached to this object, or nil if none exist.
 
SScriptingEvents Events [get]
 Returns a Scripting Events component attached to this object, or nil if none exist.
 
SScriptingResources Resources [get]
 Returns a Scripting Resources component attached to this object, or nil if none exist.
 
SScriptingData Data [get]
 Returns a Scripting Data component attached to this object, or nil if none exist.
 
SRigidbody Rigidbody [get]
 Returns a Rigidbody component attached to this object, or nil if none exist.
 
SWheelCollider WheelCollider [get]
 Returns a WheelCollider component attached to this object, or nil if none exist.
 
SCollider Collider [get]
 Returns a Rigidbody component attached to this object, or nil if none exist.
 
SBoxCollider BoxCollider [get]
 Returns a BoxCollider component attached to this object, or nil if none exist.
 
SSphereCollider SphereCollider [get]
 Returns a SphereCollider component attached to this object, or nil if none exist.
 
SCapsuleCollider CapsuleCollider [get]
 Returns a CapsuleCollider component attached to this object, or nil if none exist.
 
SCharacterController CharacterController [get]
 Returns a CharacterController component attached to this object, or nil if none exist.
 
SAudioReactiveBase AudioReactive [get]
 Returns the first Audio Reactive component attached to this object, or nil if none exist.
 
SAttachmentHelper AttachmentHelper [get]
 Returns the first Attachment Helper component attached to this object, or nil if none exist.
 
SAudioReactiveAnimation AudioReactiveAnimation [get]
 Returns the first Audio Reactive Animation component attached to this object, or nil if none exist.
 
SAudioReactiveLight AudioReactiveLight [get]
 Returns the first Audio Reactive Light component attached to this object, or nil if none exist.
 
SAudioReactiveParticleSystem AudioReactiveParticleSystem [get]
 Returns the first Audio Reactive Particle System component attached to this object, or nil if none exist.
 
SAudioReactiveMaterial AudioReactiveMaterial [get]
 Returns the first Audio Reactive Material component attached to this object, or nil if none exist.
 
SAudioReactiveTransform AudioReactiveTransform [get]
 Returns the first Audio Reactive Transform component attached to this object, or nil if none exist.
 
STrailRenderer TrailRenderer [get]
 Returns a Unity component attached to this object, or nil if none exist.
 
SLineRenderer LineRenderer [get]
 Returns a Unity component attached to this object, or nil if none exist.
 
SUILayout< UnityEngine.UI.LayoutGroup > UILayout [get]
 Returns a Renderer component attached to this object, or nil if none exist.
 
SUIToggle UIToggle [get]
 Returns a Unity uGUI Toggle component attached to this object, or nil if none exist.
 
SUIDropdown UIDropdown [get]
 Returns a Unity uGUI Dropdown component attached to this object, or nil if none exist.
 
SUIButton UIButton [get]
 Returns a Unity uGUI Button component attached to this object, or nil if none exist.
 
SUIText UIText [get]
 Returns a Unity uGUI Text component attached to this object, or nil if none exist.
 
SUISlider UISlider [get]
 Returns a Unity uGUI Slider component attached to this object, or nil if none exist.
 
SUIScrollbar UIScrollbar [get]
 Returns a Unity uGUI Scrollbar component attached to this object, or nil if none exist.
 
SUICanvas UICanvas [get]
 Returns a Unity uGUI Canvas component attached to this object, or nil if none exist.
 
SUIImage UIImage [get]
 Returns a Unity uGUI Image component attached to this object, or nil if none exist.
 
SUIRawImage UIRawImage [get]
 Returns a Unity uGUI Text component attached to this object, or nil if none exist.
 
SUIInputField UIInputField [get]
 Returns a Unity uGUI Text component attached to this object, or nil if none exist.
 
SUIToolTipHint UIToolTipHint [get]
 Returns a ToolTipHint component attached to this object, or nil if none exist.
 
SCamera Camera [get]
 
SVirtualCamera VirtualCamera [get]
 
SVirtualCamerraCollider VirtualCamerraCollider [get]
 
SCloth Cloth [get]
 
SMeshRenderer MeshRenderer [get]
 
SFurniture Furniture [get]
 
SNavMeshAgent NavMeshAgent [get]
 
SNavMeshObstacle NavMeshObstacle [get]
 
SParticleSystem ParticleSystem [get]
 
SRectTransform RectTransform [get]
 
SSeat Seat [get]
 
SSkinnedMeshRenderer SkinnedMeshRenderer [get]
 
SSceneBackgroundMusic Radio [get]
 
STerrain Terrain [get]
 
SAnalyticsEvent AnalyticsEvent [get]
 
SGraphicRaycaster GraphicRaycaster [get]
 
SContentSizeFitter ContentSizeFitter [get]
 
bool Active [get, set]
 
bool ActiveSelf [get, set]
 
int Layer [get, set]
 
string Tag [get]
 
string Name [get, set]
 
string Moniker [get, set]
 
SGameObject Parent [get, set]
 
SGameObject Root [get]
 
SGameObject[] Children [get]
 WARNING: This will create a copy, not a reference if called multiple times (as the possible state changes.). Cache this.
 
SVector WorldPosition [get, set]
 
SVector LocalPosition [get, set]
 
SQuaternion WorldRotation [get, set]
 
SQuaternion LocalRotation [get, set]
 
SVector LocalScale [get, set]
 
SVector WorldScale [get]
 
SVector Forward [get]
 
SVector Up [get]
 
SVector Right [get]
 
SEventCalendar EventCalendar [get]
 
- Properties inherited from ScriptClass< T >
override bool Alive [get]
 Return if the component is alive.
 
- Properties inherited from ScriptClassWrapper< T >
_wrap [get]
 
- Properties inherited from ScriptClass
virtual bool Alive [get]
 
DynValue CachedData [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from ScriptClass
void Initialise (SScript runtime)
 

Member Function Documentation

◆ AddAnimator()

SAnimator SineSpace.Scripting.Types.SGameObject.AddAnimator ( )

◆ AddAudioSource()

SAudioSource SineSpace.Scripting.Types.SGameObject.AddAudioSource ( )

◆ AddClickable()

SClickable SineSpace.Scripting.Types.SGameObject.AddClickable ( )

◆ AddEventTrigger()

SEventTrigger SineSpace.Scripting.Types.SGameObject.AddEventTrigger ( )

◆ AddHingeJoint()

SHingeJoint SineSpace.Scripting.Types.SGameObject.AddHingeJoint ( )

◆ AddLight()

SLight SineSpace.Scripting.Types.SGameObject.AddLight ( )

◆ AddNavMeshAgent()

SNavMeshAgent SineSpace.Scripting.Types.SGameObject.AddNavMeshAgent ( )

◆ AddRigidbody()

SRigidbody SineSpace.Scripting.Types.SGameObject.AddRigidbody ( )

◆ AddSeat()

SSeat SineSpace.Scripting.Types.SGameObject.AddSeat ( )

◆ CompareTag()

bool SineSpace.Scripting.Types.SGameObject.CompareTag ( string tag)

◆ Destroy()

void SineSpace.Scripting.Types.SGameObject.Destroy ( )

◆ Duplicate()

SGameObject SineSpace.Scripting.Types.SGameObject.Duplicate ( )

Duplicates this Game Object (and any children and/or components)

Returns

◆ Find()

SGameObject SineSpace.Scripting.Types.SGameObject.Find ( string name)

◆ FindInChildren()

SGameObject SineSpace.Scripting.Types.SGameObject.FindInChildren ( string name)

◆ GetAllDataInChildren()

List< SScriptingData > SineSpace.Scripting.Types.SGameObject.GetAllDataInChildren ( string name,
bool includeInactive = false )

Returns Scripting Data components attached to this object by Component Name or its children.

◆ GetAllEventsInChildren()

List< SScriptingEvents > SineSpace.Scripting.Types.SGameObject.GetAllEventsInChildren ( string name,
bool includeInactive = false )

Returns Scripting Events components attached to this object by Component Name or its children.

◆ GetAllResourcesInChildren()

List< SScriptingResources > SineSpace.Scripting.Types.SGameObject.GetAllResourcesInChildren ( string name,
bool includeInactive = false )

Returns Scripting Resources components attached to this object by Component Name or its children.

◆ GetComponent()

SComponent SineSpace.Scripting.Types.SGameObject.GetComponent ( string name)

◆ GetData()

SScriptingData SineSpace.Scripting.Types.SGameObject.GetData ( string name)

Returns a Scripting Data component attached to this object by Component Name, or nil if none exist.

◆ GetDataInChildren()

SScriptingData SineSpace.Scripting.Types.SGameObject.GetDataInChildren ( string name,
bool includeInactive = false )

Returns a Scripting Data component attached to this object or its children by Component Name, or nil if none exist.

◆ GetDataInParent()

SScriptingData SineSpace.Scripting.Types.SGameObject.GetDataInParent ( string name)

Returns a Scripting Data component attached to this object or its parents by Component Name, or nil if none exist.

◆ GetEvents()

SScriptingEvents SineSpace.Scripting.Types.SGameObject.GetEvents ( string name)

Returns a Scripting Events component attached to this object by Component Name, or nil if none exist.

◆ GetEventsInChildren()

SScriptingEvents SineSpace.Scripting.Types.SGameObject.GetEventsInChildren ( string name,
bool includeInactive = false )

Returns a Scripting Events component attached to this object or its children by Component Name, or nil if none exist.

◆ GetEventsInParent()

SScriptingEvents SineSpace.Scripting.Types.SGameObject.GetEventsInParent ( string name)

Returns a Scripting Events component attached to this object or its parents by Component Name, or nil if none exist.

◆ GetResources()

SScriptingResources SineSpace.Scripting.Types.SGameObject.GetResources ( string name)

Returns a Scripting Resources component attached to this object by Component Name, or nil if none exist.

◆ GetResourcesInChildren()

SScriptingResources SineSpace.Scripting.Types.SGameObject.GetResourcesInChildren ( string name,
bool includeInactive = false )

Returns a Scripting Resources component attached to this object or its children by Component Name, or nil if none exist.

◆ GetResourcesInParent()

SScriptingResources SineSpace.Scripting.Types.SGameObject.GetResourcesInParent ( string name)

Returns a Scripting Resources component attached to this object or its parents by Component Name, or nil if none exist.

◆ GetScript()

SScriptingRuntime SineSpace.Scripting.Types.SGameObject.GetScript ( string name)

Returns a Scripting Runtime component attached to this object by Component Name, or nil if none exist.

◆ GetScriptInChildren()

SScriptingRuntime SineSpace.Scripting.Types.SGameObject.GetScriptInChildren ( string name,
bool includeInactive = false )

Returns a Scripting Runtime component attached to this object or its children by Component Name, or nil if none exist.

◆ GetScriptInParent()

SScriptingRuntime SineSpace.Scripting.Types.SGameObject.GetScriptInParent ( string name)

Returns a Scripting Runtime component attached to this object or its parents by Component Name, or nil if none exist.

◆ GetScriptsInChildren()

List< SScriptingRuntime > SineSpace.Scripting.Types.SGameObject.GetScriptsInChildren ( string name,
bool includeInactive = false )

Returns Scripting Runtime components attached to this object by Component Name or its children.

◆ GetSiblingIndex()

int SineSpace.Scripting.Types.SGameObject.GetSiblingIndex ( )

◆ Instantiate()

SGameObject SineSpace.Scripting.Types.SGameObject.Instantiate ( )

Copy of Duplicate() for convenience.

Returns

◆ OnApplicationQuit() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnApplicationQuit ( Action e)

Binds a new event handler for the On Application Quit event.

Parameters
eA valid event handler delegate

◆ OnApplicationQuit() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnApplicationQuit ( Closure e)

◆ OnAwake() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnAwake ( Action e)

Binds a new event handler for the On Awake event.

Parameters
eA valid event handler delegate

◆ OnAwake() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnAwake ( Closure e)

◆ OnCollisionEnter() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnCollisionEnter ( Action< SPhysicsHit > e)

◆ OnCollisionEnter() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnCollisionEnter ( Closure e)

◆ OnCollisionExit() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnCollisionExit ( Action< SPhysicsHit > e)

◆ OnCollisionExit() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnCollisionExit ( Closure e)

◆ OnCollisionStay() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnCollisionStay ( Action< SPhysicsHit > e)

◆ OnCollisionStay() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnCollisionStay ( Closure e)

◆ OnDisable() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnDisable ( Action e)

Binds a new event handler for the On Disable event.

Parameters
eA valid event handler delegate

◆ OnDisable() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnDisable ( Closure e)

◆ OnEnable() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnEnable ( Action e)

Binds a new event handler for the On Enable event.

Parameters
eA valid event handler delegate

◆ OnEnable() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnEnable ( Closure e)

◆ OnFixedUpdate() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnFixedUpdate ( Action e)

Binds a new event handler for the On Fixed Update event.

Parameters
eA valid event handler delegate

◆ OnFixedUpdate() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnFixedUpdate ( Closure e)

◆ OnLateUpdate() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnLateUpdate ( Action e)

Binds a new event handler for the On Late Update event.

Parameters
eA valid event handler delegate

◆ OnLateUpdate() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnLateUpdate ( Closure e)

◆ OnMouseDown() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnMouseDown ( Action e)

Binds a new event handler for the On Mouse Down event (requires a collider on the object)

Parameters
eA valid event handler delegate

◆ OnMouseDown() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnMouseDown ( Closure e)

◆ OnParticleCollision() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnParticleCollision ( Action< SGameObject > e)

◆ OnParticleCollision() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnParticleCollision ( Closure e)

◆ OnParticleTrigger() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnParticleTrigger ( Action e)

Binds a new event handler for the OnParticleTrigger event.

Parameters
eA valid event handler delegate

◆ OnParticleTrigger() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnParticleTrigger ( Closure e)

◆ OnStart() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnStart ( Action e)

Binds a new event handler for the On Start event.

Parameters
eA valid event handler delegate

◆ OnStart() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnStart ( Closure e)

◆ OnTriggerExit() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnTriggerExit ( Action< SGameObject > e)

◆ OnTriggerExit() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnTriggerExit ( Closure e)

◆ OnTriggerStart() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnTriggerStart ( Action< SGameObject > e)

◆ OnTriggerStart() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnTriggerStart ( Closure e)

◆ OnTriggerStay() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnTriggerStay ( Action< SGameObject > e)

◆ OnTriggerStay() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnTriggerStay ( Closure e)

◆ OnUpdate() [1/2]

void SineSpace.Scripting.Types.SGameObject.OnUpdate ( Action e)

Binds a new event handler for the On Update event.

Parameters
eA valid event handler delegate

◆ OnUpdate() [2/2]

void SineSpace.Scripting.Types.SGameObject.OnUpdate ( Closure e)

◆ SetAsFirstSibling()

void SineSpace.Scripting.Types.SGameObject.SetAsFirstSibling ( )

◆ SetAsLastSibling()

void SineSpace.Scripting.Types.SGameObject.SetAsLastSibling ( )

◆ SetParent()

void SineSpace.Scripting.Types.SGameObject.SetParent ( SGameObject other,
bool worldPositionStays = true )

◆ SetSiblingIndex()

void SineSpace.Scripting.Types.SGameObject.SetSiblingIndex ( int newIndex)

◆ SubscribeToEvents()

void SineSpace.Scripting.Types.SGameObject.SubscribeToEvents ( )

Property Documentation

◆ Active

bool SineSpace.Scripting.Types.SGameObject.Active
getset

◆ ActiveSelf

bool SineSpace.Scripting.Types.SGameObject.ActiveSelf
getset

◆ AnalyticsEvent

SAnalyticsEvent SineSpace.Scripting.Types.SGameObject.AnalyticsEvent
get

◆ Animation

SAnimation SineSpace.Scripting.Types.SGameObject.Animation
get

Returns an Animation component attached to this object, or nil if none exist Animation is a legacy component and should not be confused with Animator.

◆ Animator

SAnimator SineSpace.Scripting.Types.SGameObject.Animator
get

Returns a Animator component attached to this object, or nil if none exist,GameObject have AvatarAnimator if.

◆ Archimatix

SAXModel SineSpace.Scripting.Types.SGameObject.Archimatix
get

Returns a Archimatix Model ("AXModel" component) - or Nil if nothing exists.

◆ AttachmentHelper

SAttachmentHelper SineSpace.Scripting.Types.SGameObject.AttachmentHelper
get

Returns the first Attachment Helper component attached to this object, or nil if none exist.

◆ Audio

SAudioSource SineSpace.Scripting.Types.SGameObject.Audio
get

Returns a Audio component attached to this object, or nil if none exist.

◆ AudioReactive

SAudioReactiveBase SineSpace.Scripting.Types.SGameObject.AudioReactive
get

Returns the first Audio Reactive component attached to this object, or nil if none exist.

◆ AudioReactiveAnimation

SAudioReactiveAnimation SineSpace.Scripting.Types.SGameObject.AudioReactiveAnimation
get

Returns the first Audio Reactive Animation component attached to this object, or nil if none exist.

◆ AudioReactiveLight

SAudioReactiveLight SineSpace.Scripting.Types.SGameObject.AudioReactiveLight
get

Returns the first Audio Reactive Light component attached to this object, or nil if none exist.

◆ AudioReactiveMaterial

SAudioReactiveMaterial SineSpace.Scripting.Types.SGameObject.AudioReactiveMaterial
get

Returns the first Audio Reactive Material component attached to this object, or nil if none exist.

◆ AudioReactiveParticleSystem

SAudioReactiveParticleSystem SineSpace.Scripting.Types.SGameObject.AudioReactiveParticleSystem
get

Returns the first Audio Reactive Particle System component attached to this object, or nil if none exist.

◆ AudioReactiveTransform

SAudioReactiveTransform SineSpace.Scripting.Types.SGameObject.AudioReactiveTransform
get

Returns the first Audio Reactive Transform component attached to this object, or nil if none exist.

◆ Avatar

SAvatar SineSpace.Scripting.Types.SGameObject.Avatar
get

◆ AvatarAppearance

SAvatarAppearance SineSpace.Scripting.Types.SGameObject.AvatarAppearance
get

◆ BoxCollider

SBoxCollider SineSpace.Scripting.Types.SGameObject.BoxCollider
get

Returns a BoxCollider component attached to this object, or nil if none exist.

◆ Browser

SBrowserSurface SineSpace.Scripting.Types.SGameObject.Browser
get

Returns a Browser component attached to this object, or nil if none exist.

◆ Camera

SCamera SineSpace.Scripting.Types.SGameObject.Camera
get

◆ CanvasGroup

SCanvasGroup SineSpace.Scripting.Types.SGameObject.CanvasGroup
get

Returns an CanvasGroup component attached to this object, or nil if none exist.

◆ CapsuleCollider

SCapsuleCollider SineSpace.Scripting.Types.SGameObject.CapsuleCollider
get

Returns a CapsuleCollider component attached to this object, or nil if none exist.

◆ CharacterController

SCharacterController SineSpace.Scripting.Types.SGameObject.CharacterController
get

Returns a CharacterController component attached to this object, or nil if none exist.

◆ Children

SGameObject [] SineSpace.Scripting.Types.SGameObject.Children
get

WARNING: This will create a copy, not a reference if called multiple times (as the possible state changes.). Cache this.

◆ Clickable

SClickable SineSpace.Scripting.Types.SGameObject.Clickable
get

Returns a Renderer component attached to this object, or nil if none exist.

◆ Cloth

SCloth SineSpace.Scripting.Types.SGameObject.Cloth
get

◆ Collider

SCollider SineSpace.Scripting.Types.SGameObject.Collider
get

Returns a Rigidbody component attached to this object, or nil if none exist.

◆ ContentSizeFitter

SContentSizeFitter SineSpace.Scripting.Types.SGameObject.ContentSizeFitter
get

◆ Data

SScriptingData SineSpace.Scripting.Types.SGameObject.Data
get

Returns a Scripting Data component attached to this object, or nil if none exist.

◆ Director

SPlayableDirector SineSpace.Scripting.Types.SGameObject.Director
get

Returns a PlayableDirector component attached to this object, or nil if none exist.

◆ EmbeddedVideo

SEmbeddedVideo SineSpace.Scripting.Types.SGameObject.EmbeddedVideo
get

Returns a Embedded Video component attached to this object, or nil if none exist.

◆ EventCalendar

SEventCalendar SineSpace.Scripting.Types.SGameObject.EventCalendar
get

◆ Events

SScriptingEvents SineSpace.Scripting.Types.SGameObject.Events
get

Returns a Scripting Events component attached to this object, or nil if none exist.

◆ EventTrigger

SEventTrigger SineSpace.Scripting.Types.SGameObject.EventTrigger
get

Returns a Unity Event Trigger component attached to this object, or nil if none exist.

◆ Exists

bool SineSpace.Scripting.Types.SGameObject.Exists
get

◆ Floor

SRoomFloor SineSpace.Scripting.Types.SGameObject.Floor
get

Returns a RoomFloor component attached to this object, or nil if none exist.

◆ Forward

SVector SineSpace.Scripting.Types.SGameObject.Forward
get

◆ Furniture

SFurniture SineSpace.Scripting.Types.SGameObject.Furniture
get

◆ GlobalID

string SineSpace.Scripting.Types.SGameObject.GlobalID
get

◆ GraphicRaycaster

SGraphicRaycaster SineSpace.Scripting.Types.SGameObject.GraphicRaycaster
get

◆ HasStableID

bool SineSpace.Scripting.Types.SGameObject.HasStableID
get

◆ HingeJoint

SHingeJoint SineSpace.Scripting.Types.SGameObject.HingeJoint
get

Returns a HingeJoint component attached to this object, or nil if none exist.

◆ InventoryID

int SineSpace.Scripting.Types.SGameObject.InventoryID
get

◆ Layer

int SineSpace.Scripting.Types.SGameObject.Layer
getset

◆ Light

SLight SineSpace.Scripting.Types.SGameObject.Light
get

Returns a Light component attached to this object, or nil if none exist.

◆ LightInChild

SLight SineSpace.Scripting.Types.SGameObject.LightInChild
get

Returns a Light component attached to this object or its children, or nil if none exist.

◆ LightInParent

SLight SineSpace.Scripting.Types.SGameObject.LightInParent
get

Returns a Light component attached to this object or its children, or nil if none exist.

◆ LineRenderer

SLineRenderer SineSpace.Scripting.Types.SGameObject.LineRenderer
get

Returns a Unity component attached to this object, or nil if none exist.

◆ LocalID

int SineSpace.Scripting.Types.SGameObject.LocalID
get

◆ LocalPosition

SVector SineSpace.Scripting.Types.SGameObject.LocalPosition
getset

◆ LocalRotation

SQuaternion SineSpace.Scripting.Types.SGameObject.LocalRotation
getset

◆ LocalScale

SVector SineSpace.Scripting.Types.SGameObject.LocalScale
getset

◆ MeshFilter

SMeshFilter SineSpace.Scripting.Types.SGameObject.MeshFilter
get

Returns a MeshFilter component attached to this object, or nil if none exist.

◆ MeshRenderer

SMeshRenderer SineSpace.Scripting.Types.SGameObject.MeshRenderer
get

◆ Moniker

string SineSpace.Scripting.Types.SGameObject.Moniker
getset

◆ Name

string SineSpace.Scripting.Types.SGameObject.Name
getset

◆ NavMeshAgent

SNavMeshAgent SineSpace.Scripting.Types.SGameObject.NavMeshAgent
get

◆ NavMeshObstacle

SNavMeshObstacle SineSpace.Scripting.Types.SGameObject.NavMeshObstacle
get

◆ Networking

SNetworking SineSpace.Scripting.Types.SGameObject.Networking
get

Returns a Simple Networking component attached to this object, or nil if none exist.

◆ Owner

long SineSpace.Scripting.Types.SGameObject.Owner
get

◆ Parent

SGameObject SineSpace.Scripting.Types.SGameObject.Parent
getset

◆ ParticleSystem

SParticleSystem SineSpace.Scripting.Types.SGameObject.ParticleSystem
get

◆ PostProcessVolume

SPostProcessVolume SineSpace.Scripting.Types.SGameObject.PostProcessVolume
get

Returns a Post Process Volume component attached to this object, or nil if none exist.

◆ Radio

SSceneBackgroundMusic SineSpace.Scripting.Types.SGameObject.Radio
get

◆ RectTransform

SRectTransform SineSpace.Scripting.Types.SGameObject.RectTransform
get

◆ ReflectionProbe

SReflectionProbe SineSpace.Scripting.Types.SGameObject.ReflectionProbe
get

Returns a ReflectionProbe component attached to this object, or nil if none exist.

◆ Renderer

SRenderer<Renderer> SineSpace.Scripting.Types.SGameObject.Renderer
get

Returns a Renderer component attached to this object, or nil if none exist.

◆ Resources

SScriptingResources SineSpace.Scripting.Types.SGameObject.Resources
get

Returns a Scripting Resources component attached to this object, or nil if none exist.

◆ Right

SVector SineSpace.Scripting.Types.SGameObject.Right
get

◆ Rigidbody

SRigidbody SineSpace.Scripting.Types.SGameObject.Rigidbody
get

Returns a Rigidbody component attached to this object, or nil if none exist.

◆ Root

SGameObject SineSpace.Scripting.Types.SGameObject.Root
get

◆ Script

new SScriptingRuntime SineSpace.Scripting.Types.SGameObject.Script
get

Returns a Scripting Runtime component attached to this object, or nil if none exist.

◆ Seat

SSeat SineSpace.Scripting.Types.SGameObject.Seat
get

◆ SkinnedMeshRenderer

SSkinnedMeshRenderer SineSpace.Scripting.Types.SGameObject.SkinnedMeshRenderer
get

◆ SphereCollider

SSphereCollider SineSpace.Scripting.Types.SGameObject.SphereCollider
get

Returns a SphereCollider component attached to this object, or nil if none exist.

◆ StateMachine

SStateMachine SineSpace.Scripting.Types.SGameObject.StateMachine
get

Returns a Simple State Machine component attached to this object, or nil if none exist.

◆ Tag

string SineSpace.Scripting.Types.SGameObject.Tag
get

◆ Terrain

STerrain SineSpace.Scripting.Types.SGameObject.Terrain
get

◆ TrailRenderer

STrailRenderer SineSpace.Scripting.Types.SGameObject.TrailRenderer
get

Returns a Unity component attached to this object, or nil if none exist.

◆ UIButton

SUIButton SineSpace.Scripting.Types.SGameObject.UIButton
get

Returns a Unity uGUI Button component attached to this object, or nil if none exist.

◆ UICanvas

SUICanvas SineSpace.Scripting.Types.SGameObject.UICanvas
get

Returns a Unity uGUI Canvas component attached to this object, or nil if none exist.

◆ UIDropdown

SUIDropdown SineSpace.Scripting.Types.SGameObject.UIDropdown
get

Returns a Unity uGUI Dropdown component attached to this object, or nil if none exist.

◆ UIImage

SUIImage SineSpace.Scripting.Types.SGameObject.UIImage
get

Returns a Unity uGUI Image component attached to this object, or nil if none exist.

◆ UIInputField

SUIInputField SineSpace.Scripting.Types.SGameObject.UIInputField
get

Returns a Unity uGUI Text component attached to this object, or nil if none exist.

◆ UILayout

SUILayout<UnityEngine.UI.LayoutGroup> SineSpace.Scripting.Types.SGameObject.UILayout
get

Returns a Renderer component attached to this object, or nil if none exist.

◆ UIRawImage

SUIRawImage SineSpace.Scripting.Types.SGameObject.UIRawImage
get

Returns a Unity uGUI Text component attached to this object, or nil if none exist.

◆ UIScrollbar

SUIScrollbar SineSpace.Scripting.Types.SGameObject.UIScrollbar
get

Returns a Unity uGUI Scrollbar component attached to this object, or nil if none exist.

◆ UISlider

SUISlider SineSpace.Scripting.Types.SGameObject.UISlider
get

Returns a Unity uGUI Slider component attached to this object, or nil if none exist.

◆ UIText

SUIText SineSpace.Scripting.Types.SGameObject.UIText
get

Returns a Unity uGUI Text component attached to this object, or nil if none exist.

◆ UIToggle

SUIToggle SineSpace.Scripting.Types.SGameObject.UIToggle
get

Returns a Unity uGUI Toggle component attached to this object, or nil if none exist.

◆ UIToolTipHint

SUIToolTipHint SineSpace.Scripting.Types.SGameObject.UIToolTipHint
get

Returns a ToolTipHint component attached to this object, or nil if none exist.

◆ Up

SVector SineSpace.Scripting.Types.SGameObject.Up
get

◆ Vehicle

SModularVehicle SineSpace.Scripting.Types.SGameObject.Vehicle
get

Returns a Modular Vehicle component attached to this object, or nil if none exist.

◆ VirtualCamera

SVirtualCamera SineSpace.Scripting.Types.SGameObject.VirtualCamera
get

◆ VirtualCamerraCollider

SVirtualCamerraCollider SineSpace.Scripting.Types.SGameObject.VirtualCamerraCollider
get

◆ VoiceZone

SVoiceZone SineSpace.Scripting.Types.SGameObject.VoiceZone
get

Returns a VoiceZone component attached to this object, or nil if none exist.

◆ WheelCollider

SWheelCollider SineSpace.Scripting.Types.SGameObject.WheelCollider
get

Returns a WheelCollider component attached to this object, or nil if none exist.

◆ WorldPosition

SVector SineSpace.Scripting.Types.SGameObject.WorldPosition
getset

◆ WorldRotation

SQuaternion SineSpace.Scripting.Types.SGameObject.WorldRotation
getset

◆ WorldScale

SVector SineSpace.Scripting.Types.SGameObject.WorldScale
get