Edytuj

Udostępnij za pośrednictwem


GameObjectExtensions.ApplyLayerCacheRecursively Method

Definition

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

Applies to