Method SetLayerRecursively
SetLayerRecursively(Transform, int)
Sets the layer for the GameObject associated with transform and all its children.
Declaration
public static void SetLayerRecursively(this Transform transform, int layer)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | The |
| int | layer | The layer in which the game object should be. |