Class ComponentUtils<T>
Special utility class for getting components in the editor without allocations
Inheritance
ComponentUtils<T>
Syntax
public static class ComponentUtils<T>
Type Parameters
Name |
Description |
T |
The type of component for which to be searched
|
Methods
GetComponent(GameObject)
Declaration
public static T GetComponent(GameObject gameObject)
Parameters
Type |
Name |
Description |
GameObject |
gameObject |
|
Returns
GetComponentInChildren(GameObject)
Declaration
public static T GetComponentInChildren(GameObject gameObject)
Parameters
Type |
Name |
Description |
GameObject |
gameObject |
|
Returns