GameObjectExtensions.ApplyLayerCacheRecursively Method
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
C++
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))
- root
- UnityEngine.GameObject
Start point of the traverse
- cache
- Dictionary<UnityEngine.GameObject,Int32>
The previously set layer for each object
Продукт | Версії |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |