GameObject Properties |
The GameObject type exposes the following members.
Name | Description | |
---|---|---|
![]() | ActiveScene |
Get the currently active scene instance.
|
![]() ![]() | Count |
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.
|
![]() | Enabled |
Enable / disable this object.
Disabled objects will not update any components and will not render.
|
![]() | IsActuallyEnabled |
Return true only if this GameObject and all his parents are enabled.
|
![]() | IsActuallyVisible |
Return true only if this GameObject and all his parents are visible.
|
![]() | IsInActiveScene |
Return if this object is inside the currently active scene.
|
![]() | IsInScene |
Get if this Game Object currently belong to any scene.
|
![]() | IsRoot |
Get if this game object is the root of the currently loaded scene.
|
![]() | Name |
Object name (don't have to be unique).
|
![]() | Parent |
Get / Set the parent of this GameObject.
|
![]() | ParentScene |
Get the parent scene of this game object.
|
![]() | PhysicalBody |
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.
|
![]() | SceneNode |
Get the scene node of this Game Object.
|
![]() | Visible |
Get / set object visibility.
Invisible objects won't render, but will still update components.
|
![]() | WasDestroyed |
Get if this object was destroyed and should not be used anymore.
|