AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HoloToolkit.Unity.GameObjectExtensions Class Reference

Extension methods for Unity's GameObject class More...

Static Public Member Functions

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...
 

Detailed Description

Extension methods for Unity's GameObject class

Definition at line 13 of file GameObjectExtensions.cs.

Member Function Documentation

§ ApplyLayerCacheRecursively()

static void HoloToolkit.Unity.GameObjectExtensions.ApplyLayerCacheRecursively ( this GameObject  root,
Dictionary< GameObject, int >  cache 
)
static

Reapplies previously cached hierarchy layers

Parameters
rootStart point of the traverse
cacheThe 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

Definition at line 16 of file GameObjectExtensions.cs.

§ GetParentRoot()

static GameObject HoloToolkit.Unity.GameObjectExtensions.GetParentRoot ( this GameObject  child)
static

Gets the GameObject's root Parent object.

Parameters
childThe 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
rootStart point of the traverse
layerThe 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
rootStart point of the traverse
layerThe layer to apply
cacheThe 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: