Scripting API

Component

class in UnityEngine · UnityEngine.CoreModule · inherits from Object

15 of 17 of Unity's membersUnity's documentation

Properties 4

GameObject gameObject { get; }
int layer { get; }
string tag { get; set; }
Transform transform { get; }

Methods 11

void BroadcastMessage(string methodName)
void BroadcastMessage(string methodName, object? parameter)
void BroadcastMessage(string methodName, SendMessageOptions options)
void BroadcastMessage(string methodName, object? parameter, SendMessageOptions options)
bool CompareTag(string tag)
T GetComponent<T>()
Component GetComponent(Type type)
T GetComponentInChildren<T>(bool includeInactive = false)
T GetComponentInChildren<T>()
Component GetComponentInChildren(Type type, bool includeInactive)
Component GetComponentInChildren(Type type)
T GetComponentInParent<T>(bool includeInactive = false)
T GetComponentInParent<T>()
Component GetComponentInParent(Type type, bool includeInactive)
Component GetComponentInParent(Type type)
T[] GetComponents<T>()
Component[] GetComponents(System.Type type)
void GetComponents<T>(List<T> results)
T[] GetComponentsInChildren<T>(bool includeInactive = false)
T[] GetComponentsInChildren<T>()
void GetComponentsInChildren<T>(bool includeInactive, System.Collections.Generic.List<T> results)
Component[] GetComponentsInChildren(Type type, bool includeInactive = false)
T[] GetComponentsInParent<T>(bool includeInactive = false)
T[] GetComponentsInParent<T>()
Component[] GetComponentsInParent(Type type, bool includeInactive = false)
void GetComponentsInParent<T>(bool includeInactive, List<T> results)
void SendMessage(string methodName)
void SendMessage(string methodName, object? value)
void SendMessage(string methodName, SendMessageOptions options)
void SendMessage(string methodName, object? value, SendMessageOptions options)
void SendMessageUpwards(string methodName)
void SendMessageUpwards(string methodName, object? value)
void SendMessageUpwards(string methodName, SendMessageOptions options)
void SendMessageUpwards(string methodName, object? value, SendMessageOptions options)
bool TryGetComponent<T>(out T component)

Not in Tassix yet 2

GetComponentIndex transformHandle