Class ComponentUtils<T>
Special utility class for getting components in the editor without allocations.
Inherited Members
Namespace: Unity.XR.CoreUtils
Assembly: solution.dll
Syntax
public static class ComponentUtils<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of component for which to be searched. |
Methods
| Name | Description |
|---|---|
| GetComponent(GameObject) | Gets a single component of type T using the non-allocating GetComponents API. |
| GetComponentInChildren(GameObject) | Gets a single component of type T using the non-allocating GetComponentsInChildren API. |