GameObjectExtensions.ApplyLayerCacheRecursively Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reapplies previously cached hierarchy layers
public:
[System::Runtime::CompilerServices::Extension]
static void ApplyLayerCacheRecursively(UnityEngine::GameObject ^ root, System::Collections::Generic::Dictionary<UnityEngine::GameObject ^, int> ^ cache);
public static void ApplyLayerCacheRecursively (this UnityEngine.GameObject root, System.Collections.Generic.Dictionary<UnityEngine.GameObject,int> cache);
static member ApplyLayerCacheRecursively : UnityEngine.GameObject * System.Collections.Generic.Dictionary<UnityEngine.GameObject, int> -> unit
<Extension()>
Public Sub ApplyLayerCacheRecursively (root As GameObject, cache As Dictionary(Of GameObject, Integer))
Parameters
- root
- UnityEngine.GameObject
Start point of the traverse
- cache
- Dictionary<UnityEngine.GameObject,Int32>
The previously set layer for each object