Class Object
Assembly: UnityEngine.dll
Syntax
Properties
hideFlags
Declaration
public HideFlags hideFlags { get; set; }
Property Value
|
Improve this Doc
View Source
name
Declaration
public string name { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Destroy(Object)
Declaration
[ExcludeFromDocs]
public static void Destroy(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Destroy(Object, Single)
Declaration
public static void Destroy(Object obj, [DefaultValue("0.0F")] float t)
Parameters
|
Improve this Doc
View Source
Declaration
[ExcludeFromDocs]
public static void DestroyImmediate(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Declaration
public static void DestroyImmediate(Object obj, [DefaultValue("false")] bool allowDestroyingAssets)
Parameters
|
Improve this Doc
View Source
DestroyObject(Object)
Declaration
[Obsolete("use Object.Destroy instead.")]
[ExcludeFromDocs]
public static void DestroyObject(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
|
Improve this Doc
View Source
DestroyObject(Object, Single)
Declaration
[Obsolete("use Object.Destroy instead.")]
public static void DestroyObject(Object obj, [DefaultValue("0.0F")] float t)
Parameters
DontDestroyOnLoad(Object)
Declaration
public static void DontDestroyOnLoad(Object target)
Parameters
Type |
Name |
Description |
Object |
target |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Overrides
|
Improve this Doc
View Source
FindObjectOfType(Type)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public static Object FindObjectOfType(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
FindObjectOfType<T>()
Declaration
public static T FindObjectOfType<T>()
where T : Object
Returns
Type Parameters
FindObjectsOfType(Type)
Declaration
[TypeInferenceRule(TypeInferenceRules.ArrayOfTypeReferencedByFirstArgument)]
public static Object[] FindObjectsOfType(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
FindObjectsOfType<T>()
Declaration
public static T[] FindObjectsOfType<T>()
where T : Object
Returns
Type Parameters
|
Improve this Doc
View Source
FindObjectsOfTypeAll(Type)
Declaration
[Obsolete("Please use Resources.FindObjectsOfTypeAll instead")]
public static Object[] FindObjectsOfTypeAll(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
FindObjectsOfTypeIncludingAssets(Type)
Declaration
[Obsolete("use Resources.FindObjectsOfTypeAll instead.")]
public static Object[] FindObjectsOfTypeIncludingAssets(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
FindSceneObjectsOfType(Type)
Declaration
[Obsolete("warning use Object.FindObjectsOfType instead.")]
public static Object[] FindSceneObjectsOfType(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
GetInstanceID()
Declaration
public int GetInstanceID()
Returns
|
Improve this Doc
View Source
Instantiate(Object)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeOfFirstArgument)]
public static Object Instantiate(Object original)
Parameters
Type |
Name |
Description |
Object |
original |
|
Returns
|
Improve this Doc
View Source
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeOfFirstArgument)]
public static Object Instantiate(Object original, Transform parent)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeOfFirstArgument)]
public static Object Instantiate(Object original, Transform parent, bool instantiateInWorldSpace)
Parameters
Returns
|
Improve this Doc
View Source
Instantiate(Object, Vector3, Quaternion)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeOfFirstArgument)]
public static Object Instantiate(Object original, Vector3 position, Quaternion rotation)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeOfFirstArgument)]
public static Object Instantiate(Object original, Vector3 position, Quaternion rotation, Transform parent)
Parameters
Returns
|
Improve this Doc
View Source
Instantiate<T>(T)
Declaration
public static T Instantiate<T>(T original)
where T : Object
Parameters
Type |
Name |
Description |
T |
original |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Declaration
public static T Instantiate<T>(T original, Transform parent)
where T : Object
Parameters
Type |
Name |
Description |
T |
original |
|
Transform |
parent |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Declaration
public static T Instantiate<T>(T original, Transform parent, bool worldPositionStays)
where T : Object
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Instantiate<T>(T, Vector3, Quaternion)
Declaration
public static T Instantiate<T>(T original, Vector3 position, Quaternion rotation)
where T : Object
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Declaration
public static T Instantiate<T>(T original, Vector3 position, Quaternion rotation, Transform parent)
where T : Object
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Equality(Object, Object)
Declaration
public static bool operator ==(Object x, Object y)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(Object to Boolean)
Declaration
public static implicit operator bool (Object exists)
Parameters
Type |
Name |
Description |
Object |
exists |
|
Returns
|
Improve this Doc
View Source
Inequality(Object, Object)
Declaration
public static bool operator !=(Object x, Object y)
Parameters
Returns
Extension Methods