Class ComponentUtils
Utility class for working with Components.
Inherited Members
Namespace: Unity.XR.CoreUtils
Assembly: solution.dll
Syntax
public static class ComponentUtils
Methods
| Name | Description |
|---|---|
| GetOrAddIf<T>(GameObject, bool) | Gets a component from a GameObject. Optionally, adds a new component and returns it if a component of the specified type does not already exist. |