Читати англійською Редагувати

Поділитися через


GameObjectExtensions.ApplyLayerCacheRecursively Method

Definition

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);

Parameters

root
UnityEngine.GameObject

Start point of the traverse

cache
Dictionary<UnityEngine.GameObject,Int32>

The previously set layer for each object

Applies to

Продукт Версії
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