GameObjectExtensions.SetLayerInChildren
Extension Method in GameObjectExtensions
Declaration
public static void SetLayerInChildren(this GameObject parent, int layer)Description
Sets the layer of the parent game object and all of its children.
Parameters
| parent | The parent game object to set the layer of and its children. |
| layer | The layer to assign. |
Overload
Declaration
public static void SetLayerInChildren(this GameObject parent, string layer)Description
Sets the layer of the parent game object and all of its children.
Parameters
| parent | The parent game object to set the layer of and its children. |
| layer | The layer to assign. |