API > Object
Object
Base class for all objects Unity can reference. Unity Object
Members
Properties
Name |
Description |
Object .hideFlags |
Should the object be hidden, saved with the Scene or modifiable by the user? |
Object .name |
The name of the object. |
Methods
Name |
Description |
Object .GetInstanceID() |
Returns the instance id of the object. |
Static Methods
Name |
Description |
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. |