Skip to main content

Object

Base class for all objects Unity can reference. Unity Object

Members

Properties

NameDescription
Object.hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
Object.nameThe name of the object.

Methods

NameDescription
Object.GetInstanceID()Returns the instance id of the object.

Static Methods

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