Skip to content

API > Object


Object⚓︎

Base class for all objects Unity can reference. Unity Object

Members⚓︎

Properties⚓︎

Name Description
Object.hideFlagsProperty Should the object be hidden, saved with the Scene or modifiable by the user?
Object.nameProperty The name of the object.

Methods⚓︎

Name Description
Object.GetInstanceID() Method Returns the instance id of the object.

Static Methods⚓︎

Name Description
Object.Destroy(obj, t=0) Static fieldMethod Removes a GameObject, component or asset.
Object.FindObjectOfType(type) Static fieldMethod Returns the first active loaded object of Type type.
Object.FindObjectsOfType(type) Static fieldMethod Returns a list of all active loaded objects of Type type.
Object.Instantiate(original) Static fieldMethod Clones the object original and returns the clone.
Object.Instantiate(original, parent) Static fieldMethod Clones the object original and returns the clone.
Object.Instantiate(original, parent, instantiateInWorldSpace) Static fieldMethod Clones the object original and returns the clone.
Object.Instantiate(original, position, rotation) Static fieldMethod Clones the object original and returns the clone.
Object.Instantiate(original, position, rotation, parent) Static fieldMethod Clones the object original and returns the clone.