Click or drag to resize
GameObject Properties

The GameObject type exposes the following members.

Properties
  NameDescription
Public propertyActiveScene
Get the currently active scene instance.
Public propertyStatic memberCount
Count how many GameObject instances currently exist. Note: 'Destroy' doesn't decrease the counter, only when the real class destrcutor is called (eg object is cleared from memory) counter is decreased.
Public propertyEnabled
Enable / disable this object. Disabled objects will not update any components and will not render.
Public propertyIsActuallyEnabled
Return true only if this GameObject and all his parents are enabled.
Public propertyIsActuallyVisible
Return true only if this GameObject and all his parents are visible.
Public propertyIsInActiveScene
Return if this object is inside the currently active scene.
Public propertyIsInScene
Get if this Game Object currently belong to any scene.
Public propertyIsRoot
Get if this game object is the root of the currently loaded scene.
Public propertyName
Object name (don't have to be unique).
Public propertyParent
Get / Set the parent of this GameObject.
Public propertyParentScene
Get the parent scene of this game object.
Public propertyPhysicalBody
An alias to get the first physical body added to this GameObject. This is useful for performance and ease of access, since Physical Body is something that you often need to access.
Public propertySceneNode
Get the scene node of this Game Object.
Public propertyVisible
Get / set object visibility. Invisible objects won't render, but will still update components.
Public propertyWasDestroyed
Get if this object was destroyed and should not be used anymore.
Top
See Also