Synced
GameObject
Section titled “GameObject”
- Represents a scene-owned object and exposes its component-oriented API.
Required contracts
Section titled “Required contracts”API: engine
Implements: Inno.Core.Serialization.ISerializable
Inherits: Inno.Scene.EngineObject
Project: Inno.Scene
Declaration
Section titled “Declaration”public sealed class Inno.Scene.GameObject : Inno.Scene.EngineObject, Inno.Core.Serialization.ISerializableMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Fields | GameObject.defaultTag | Defines the tag assigned to newly created game objects. |
| Methods | GameObject.AddComponent(System.Type) | Creates and attaches a component of the requested runtime type. |
| Methods | GameObject.AddComponent (Method) | Creates and attaches a component of the requested type. |
| Methods | GameObject.GetComponent(System.Type) | Gets the first attached component assignable to a runtime type. |
| Methods | GameObject.GetComponent (Method) | Gets the first attached component assignable to the requested type. |
| Methods | GameObject.GetComponentIndex | Gets the attachment index of a component on this object. |
| Methods | GameObject.GetComponents (Method) | Gets all attached components in attachment order. |
| Methods | GameObject.GetComponents (Method) | Gets all attached components assignable to the requested type in attachment order. |
| Methods | GameObject.HasComponent | Gets whether a matching component is attached. |
| Methods | GameObject.RemoveComponent | Removes and destroys a specific attached component. |
| Methods | GameObject.ResetComponent | Restores an attached component to the defaults defined by its optional Reset message. |
| Methods | GameObject.SetActive | Changes this object’s explicit active state and updates its hierarchy subtree. |
| Methods | GameObject.SetComponentIndex | Moves an attached component to a requested attachment index. The mandatory Transform participates in ordering but remains non-removable. |
| Methods | GameObject.TryGetComponent | Tries to get the first attached component assignable to the requested type. |
| Properties | GameObject.activeInHierarchy | Gets whether this object is active after parent hierarchy state is applied. |
| Properties | GameObject.activeSelf | Gets whether this object is explicitly active. |
| Properties | GameObject.isPartOfPrefabInstance | Gets whether this object retains a prefab source connection. |
| Properties | GameObject.isRuntimeValid | Gets whether this object is live in its owning scene. |
| Properties | GameObject.layer | Gets or sets the single runtime layer used to filter this game object. |
| Properties | GameObject.name | Gets or sets the display name stored in the owning scene. |
| Properties | GameObject.prefabInstance | Gets read-only information about this object’s prefab source connection. |
| Properties | GameObject.prefabInstanceRoot | Gets the root of this object’s prefab instance connection. |
| Properties | GameObject.scene | Gets the owning scene. |
| Properties | GameObject.tag | Gets or sets the ordinal tag used to categorize and query this game object. |
| Properties | GameObject.transform | Gets the mandatory transform component. |