GameObjectExtensions Class |
Namespace: ImmerseSDK.Extensions
public static class GameObjectExtensions
The GameObjectExtensions type exposes the following members.
Name | Description | |
---|---|---|
AddComponentCopy |
Adds a copy of a particular component
| |
AddOrGetComponentT |
Tries to get a component of type T, if none is found, one will be added
| |
AddToChildrenT |
Adds a component to all children
| |
DisableLightProbesRecursive |
Disabled all light probes on all Renderers within a GameObject
| |
FindChildRecursively |
Search for a child transform within the parent transform's entire hierarchy
| |
GetBounds |
Get the bounds of a GameObject, using attached colliders
| |
GetChildren |
Get all children of a transform as an array
| |
GetComponentInParentRecursiveT(GameObject) |
Searches for a Component of type T upwards in the transform's hierarchy
| |
GetComponentInParentRecursiveT(GameObject, FuncT, Boolean) |
Searches for a Component of type T upwards in the transform's hierarchy
| |
GetTopMostComponentT(GameObject) |
Traverses the gameObject hierarchy upwards (via parents) to find the topmost instance of the script
| |
GetTopMostComponentT(GameObject, FuncT, Boolean) |
Traverses the gameObject hierarchy upwards (via parents) to find the topmost instance of the script
| |
SetLayerRecursive |
Sets the layer for a GameObject and all it's children
|