This is the user guide to the Layers class for managing object layers. There are many overflow methods to allow flexibility. Overflows are listed below the parent function.
Changes the culling mask on the main camera by toggling the layer layerName. The boolean visible notates the state; if true, the layer will be enabled on the camera. If false, the layer will be disabled.
Overflow to ChangeCullingMask(). Designate a camera to adjust instead of the main camera.
Returns state of the given layer on the main camera. This function does not take layer names and only takes integers.
Return state of the given layer on the given camera. This function does not take layer names and only takes integers.
Manually sets the layer of the given object to the given integer layer. This does not affect children.
Manually sets the layer of the given object to the given layer by name. This does not affect children.
Sets the layer of the given object and all of its children to the given integer layer.
Sets the layer of the given object and all of its children to the given layer name.
Sets the layer of the given object and its children to the given integer layer. This function will ignore any objects with the name specified. (Instantiated objects may not apply without the " (clone)" suffix).
Sets the layer of the given object and its children to the given layer name. This function will ignore any objects with the name specified. (Instantiated objects may not apply without the " (clone)" suffix).
Sets the layer of the given object and its children to the given integer layer. This function will ignore any objects with names in the given array.
Sets the layer of the given object and its children to the given layer name. This function will ignore any objects with names in the given array.
Sets the layer of the given object and its children to the given integer layer. This function will ignore any objects with names in the given list.
Sets the layer of the given object and its children to the given layer name. This function will ignore any objects with names in the given list.