Show / Hide Table of Contents

Class MonoBehaviour

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
NetworkMatch
Inherited Members
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.transform
Component.gameObject
Component.GetComponent(Type)
Component.GetComponent<T>()
Component.GetComponent(String)
Component.GetComponentInChildren(Type, Boolean)
Component.GetComponentInChildren(Type)
Component.GetComponentInChildren<T>(Boolean)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren(Type, Boolean)
Component.GetComponentsInChildren(Type)
Component.GetComponentsInChildren<T>(Boolean)
Component.GetComponentsInChildren<T>(Boolean, List<T>)
Component.GetComponentsInChildren<T>()
Component.GetComponentsInChildren<T>(List<T>)
Component.GetComponentInParent(Type)
Component.GetComponentInParent<T>()
Component.GetComponentsInParent(Type, Boolean)
Component.GetComponentsInParent(Type)
Component.GetComponentsInParent<T>(Boolean)
Component.GetComponentsInParent<T>(Boolean, List<T>)
Component.GetComponentsInParent<T>()
Component.GetComponents(Type)
Component.GetComponents(Type, List<Component>)
Component.GetComponents<T>(List<T>)
Component.tag
Component.GetComponents<T>()
Component.CompareTag(String)
Component.SendMessageUpwards(String, Object, SendMessageOptions)
Component.SendMessageUpwards(String, Object)
Component.SendMessageUpwards(String)
Component.SendMessageUpwards(String, SendMessageOptions)
Component.SendMessage(String, Object)
Component.SendMessage(String)
Component.SendMessage(String, Object, SendMessageOptions)
Component.SendMessage(String, SendMessageOptions)
Component.BroadcastMessage(String, Object, SendMessageOptions)
Component.BroadcastMessage(String, Object)
Component.BroadcastMessage(String)
Component.BroadcastMessage(String, SendMessageOptions)
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public class MonoBehaviour : Behaviour

Constructors

| Improve this Doc View Source

MonoBehaviour()

Declaration
public MonoBehaviour()

Properties

runInEditMode

Declaration
public bool runInEditMode { get; set; }
Property Value
Type Description
Boolean

useGUILayout

Declaration
public bool useGUILayout { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

CancelInvoke()

Declaration
public void CancelInvoke()
| Improve this Doc View Source

CancelInvoke(String)

Declaration
public void CancelInvoke(string methodName)
Parameters
Type Name Description
String methodName
| Improve this Doc View Source

Invoke(String, Single)

Declaration
public void Invoke(string methodName, float time)
Parameters
Type Name Description
String methodName
Single time
| Improve this Doc View Source

InvokeRepeating(String, Single, Single)

Declaration
public void InvokeRepeating(string methodName, float time, float repeatRate)
Parameters
Type Name Description
String methodName
Single time
Single repeatRate
| Improve this Doc View Source

IsInvoking()

Declaration
public bool IsInvoking()
Returns
Type Description
Boolean
| Improve this Doc View Source

IsInvoking(String)

Declaration
public bool IsInvoking(string methodName)
Parameters
Type Name Description
String methodName
Returns
Type Description
Boolean
| Improve this Doc View Source

print(Object)

Declaration
public static void print(object message)
Parameters
Type Name Description
Object message
| Improve this Doc View Source

StartCoroutine(IEnumerator)

Declaration
public Coroutine StartCoroutine(IEnumerator routine)
Parameters
Type Name Description
IEnumerator routine
Returns
Type Description
Coroutine
| Improve this Doc View Source

StartCoroutine(String)

Declaration
[ExcludeFromDocs]
public Coroutine StartCoroutine(string methodName)
Parameters
Type Name Description
String methodName
Returns
Type Description
Coroutine
| Improve this Doc View Source

StartCoroutine(String, Object)

Declaration
public Coroutine StartCoroutine(string methodName, [DefaultValue("null")] object value)
Parameters
Type Name Description
String methodName
Object value
Returns
Type Description
Coroutine
| Improve this Doc View Source

StartCoroutine_Auto(IEnumerator)

Declaration
[Obsolete("StartCoroutine_Auto has been deprecated. Use StartCoroutine instead (UnityUpgradable) -> StartCoroutine([mscorlib] System.Collections.IEnumerator)", false)]
public Coroutine StartCoroutine_Auto(IEnumerator routine)
Parameters
Type Name Description
IEnumerator routine
Returns
Type Description
Coroutine

StopAllCoroutines()

Declaration
public void StopAllCoroutines()
| Improve this Doc View Source

StopCoroutine(IEnumerator)

Declaration
public void StopCoroutine(IEnumerator routine)
Parameters
Type Name Description
IEnumerator routine

StopCoroutine(String)

Declaration
public void StopCoroutine(string methodName)
Parameters
Type Name Description
String methodName
| Improve this Doc View Source

StopCoroutine(Coroutine)

Declaration
public void StopCoroutine(Coroutine routine)
Parameters
Type Name Description
Coroutine routine

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX