Extension methods for Unity's GameObject class
More...
|
| static string | GetFullPath (this GameObject go) |
| |
| static void | SetLayerRecursively (this GameObject root, int layer) |
| | Set the layer to the given object and the full hierarchy below it. More...
|
| |
| static void | SetLayerRecursively (this GameObject root, int layer, out Dictionary< GameObject, int > cache) |
| | Set the layer to the given object and the full hierarchy below it and cache the previous layers in the out parameter. More...
|
| |
| static void | ApplyLayerCacheRecursively (this GameObject root, Dictionary< GameObject, int > cache) |
| | Reapplies previously cached hierarchy layers More...
|
| |
| static GameObject | GetParentRoot (this GameObject child) |
| | Gets the GameObject's root Parent object. More...
|
| |
Extension methods for Unity's GameObject class
Definition at line 13 of file GameObjectExtensions.cs.
§ ApplyLayerCacheRecursively()
| static void HoloToolkit.Unity.GameObjectExtensions.ApplyLayerCacheRecursively |
( |
this GameObject |
root, |
|
|
Dictionary< GameObject, int > |
cache |
|
) |
| |
|
static |
Reapplies previously cached hierarchy layers
- Parameters
-
| root | Start point of the traverse |
| cache | The previously set layer for each object |
Definition at line 63 of file GameObjectExtensions.cs.
§ GetFullPath()
| static string HoloToolkit.Unity.GameObjectExtensions.GetFullPath |
( |
this GameObject |
go | ) |
|
|
static |
§ GetParentRoot()
| static GameObject HoloToolkit.Unity.GameObjectExtensions.GetParentRoot |
( |
this GameObject |
child | ) |
|
|
static |
Gets the GameObject's root Parent object.
- Parameters
-
| child | The GameObject we're trying to find the root parent for. |
- Returns
- The Root parent GameObject.
Definition at line 82 of file GameObjectExtensions.cs.
§ SetLayerRecursively() [1/2]
| static void HoloToolkit.Unity.GameObjectExtensions.SetLayerRecursively |
( |
this GameObject |
root, |
|
|
int |
layer |
|
) |
| |
|
static |
Set the layer to the given object and the full hierarchy below it.
- Parameters
-
| root | Start point of the traverse |
| layer | The layer to apply |
Definition at line 26 of file GameObjectExtensions.cs.
§ SetLayerRecursively() [2/2]
| static void HoloToolkit.Unity.GameObjectExtensions.SetLayerRecursively |
( |
this GameObject |
root, |
|
|
int |
layer, |
|
|
out Dictionary< GameObject, int > |
cache |
|
) |
| |
|
static |
Set the layer to the given object and the full hierarchy below it and cache the previous layers in the out parameter.
- Parameters
-
| root | Start point of the traverse |
| layer | The layer to apply |
| cache | The previously set layer for each object |
Definition at line 45 of file GameObjectExtensions.cs.
The documentation for this class was generated from the following file: