Component
UnityEngine.Component · Official documentation
Scripts can use these 14 members of Component. Anything not listed here is a compile error when you build your world.
Properties and fields
| Name | Access |
|---|---|
gameObject | read only |
tag | read only |
transform | read only |
Methods
| Method | Parameters |
|---|---|
CompareTag | (string) |
GetComponent | (Type) |
GetComponentInChildren | (Type) |
GetComponentInChildren | (Type, bool) |
GetComponentInParent | (Type) |
GetComponentInParent | (Type, bool) |
GetComponents | (Type) |
GetComponentsInChildren | (Type) |
GetComponentsInChildren | (Type, bool) |
GetComponentsInParent | (Type) |
GetComponentsInParent | (Type, bool) |