Class Component
Assembly: UnityEngine.dll
Syntax
public class Component : Object
Properties
gameObject
Declaration
public GameObject gameObject { get; }
Property Value
|
Improve this Doc
View Source
tag
Declaration
public string tag { get; set; }
Property Value
Declaration
public Transform transform { get; }
Property Value
Methods
|
Improve this Doc
View Source
BroadcastMessage(String)
Declaration
[ExcludeFromDocs]
public void BroadcastMessage(string methodName)
Parameters
Type |
Name |
Description |
String |
methodName |
|
|
Improve this Doc
View Source
BroadcastMessage(String, Object)
Declaration
[ExcludeFromDocs]
public void BroadcastMessage(string methodName, object parameter)
Parameters
BroadcastMessage(String, Object, SendMessageOptions)
Declaration
public void BroadcastMessage(string methodName, [DefaultValue("null")] object parameter, [DefaultValue("SendMessageOptions.RequireReceiver")] SendMessageOptions options)
Parameters
|
Improve this Doc
View Source
BroadcastMessage(String, SendMessageOptions)
Declaration
public void BroadcastMessage(string methodName, SendMessageOptions options)
Parameters
|
Improve this Doc
View Source
CompareTag(String)
Declaration
public bool CompareTag(string tag)
Parameters
Type |
Name |
Description |
String |
tag |
|
Returns
GetComponent(String)
Declaration
public Component GetComponent(string type)
Parameters
Type |
Name |
Description |
String |
type |
|
Returns
|
Improve this Doc
View Source
GetComponent(Type)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public Component GetComponent(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
GetComponent<T>()
Declaration
public T GetComponent<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
GetComponentInChildren(Type)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public Component GetComponentInChildren(Type t)
Parameters
Type |
Name |
Description |
Type |
t |
|
Returns
|
Improve this Doc
View Source
GetComponentInChildren(Type, Boolean)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public Component GetComponentInChildren(Type t, bool includeInactive)
Parameters
Returns
|
Improve this Doc
View Source
GetComponentInChildren<T>()
Declaration
[ExcludeFromDocs]
public T GetComponentInChildren<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
GetComponentInChildren<T>(Boolean)
Declaration
public T GetComponentInChildren<T>([DefaultValue("false")] bool includeInactive)
Parameters
Type |
Name |
Description |
Boolean |
includeInactive |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetComponentInParent(Type)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public Component GetComponentInParent(Type t)
Parameters
Type |
Name |
Description |
Type |
t |
|
Returns
|
Improve this Doc
View Source
GetComponentInParent<T>()
Declaration
public T GetComponentInParent<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
GetComponents(Type)
Declaration
public Component[] GetComponents(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
GetComponents(Type, List<Component>)
Declaration
public void GetComponents(Type type, List<Component> results)
Parameters
|
Improve this Doc
View Source
GetComponents<T>()
Declaration
public T[] GetComponents<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
GetComponents<T>(List<T>)
Declaration
public void GetComponents<T>(List<T> results)
Parameters
Type |
Name |
Description |
List<T> |
results |
|
Type Parameters
|
Improve this Doc
View Source
GetComponentsInChildren(Type)
Declaration
[ExcludeFromDocs]
public Component[] GetComponentsInChildren(Type t)
Parameters
Type |
Name |
Description |
Type |
t |
|
Returns
|
Improve this Doc
View Source
GetComponentsInChildren(Type, Boolean)
Declaration
public Component[] GetComponentsInChildren(Type t, bool includeInactive)
Parameters
Returns
|
Improve this Doc
View Source
GetComponentsInChildren<T>()
Declaration
public T[] GetComponentsInChildren<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
GetComponentsInChildren<T>(Boolean)
Declaration
public T[] GetComponentsInChildren<T>(bool includeInactive)
Parameters
Type |
Name |
Description |
Boolean |
includeInactive |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetComponentsInChildren<T>(Boolean, List<T>)
Declaration
public void GetComponentsInChildren<T>(bool includeInactive, List<T> result)
Parameters
Type |
Name |
Description |
Boolean |
includeInactive |
|
List<T> |
result |
|
Type Parameters
|
Improve this Doc
View Source
GetComponentsInChildren<T>(List<T>)
Declaration
public void GetComponentsInChildren<T>(List<T> results)
Parameters
Type |
Name |
Description |
List<T> |
results |
|
Type Parameters
|
Improve this Doc
View Source
GetComponentsInParent(Type)
Declaration
[ExcludeFromDocs]
public Component[] GetComponentsInParent(Type t)
Parameters
Type |
Name |
Description |
Type |
t |
|
Returns
|
Improve this Doc
View Source
GetComponentsInParent(Type, Boolean)
Declaration
public Component[] GetComponentsInParent(Type t, [DefaultValue("false")] bool includeInactive)
Parameters
Returns
|
Improve this Doc
View Source
GetComponentsInParent<T>()
Declaration
public T[] GetComponentsInParent<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
GetComponentsInParent<T>(Boolean)
Declaration
public T[] GetComponentsInParent<T>(bool includeInactive)
Parameters
Type |
Name |
Description |
Boolean |
includeInactive |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetComponentsInParent<T>(Boolean, List<T>)
Declaration
public void GetComponentsInParent<T>(bool includeInactive, List<T> results)
Parameters
Type |
Name |
Description |
Boolean |
includeInactive |
|
List<T> |
results |
|
Type Parameters
|
Improve this Doc
View Source
SendMessage(String)
Declaration
public void SendMessage(string methodName)
Parameters
Type |
Name |
Description |
String |
methodName |
|
|
Improve this Doc
View Source
SendMessage(String, Object)
Declaration
public void SendMessage(string methodName, object value)
Parameters
SendMessage(String, Object, SendMessageOptions)
Declaration
public void SendMessage(string methodName, object value, SendMessageOptions options)
Parameters
|
Improve this Doc
View Source
SendMessage(String, SendMessageOptions)
Declaration
public void SendMessage(string methodName, SendMessageOptions options)
Parameters
|
Improve this Doc
View Source
SendMessageUpwards(String)
Declaration
[ExcludeFromDocs]
public void SendMessageUpwards(string methodName)
Parameters
Type |
Name |
Description |
String |
methodName |
|
|
Improve this Doc
View Source
SendMessageUpwards(String, Object)
Declaration
[ExcludeFromDocs]
public void SendMessageUpwards(string methodName, object value)
Parameters
SendMessageUpwards(String, Object, SendMessageOptions)
Declaration
public void SendMessageUpwards(string methodName, [DefaultValue("null")] object value, [DefaultValue("SendMessageOptions.RequireReceiver")] SendMessageOptions options)
Parameters
|
Improve this Doc
View Source
SendMessageUpwards(String, SendMessageOptions)
Declaration
public void SendMessageUpwards(string methodName, SendMessageOptions options)
Parameters
Extension Methods