var cullingMask : int
Description
This is used to lights parts of the scene selectively.
If the GameObject's layerMask AND the light's cullingMask is zero then the object will not be lit by this light.
See Layers for more information.
See Also: Light component
light.cullingMask = 1 << 0;
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Awake() {
light.cullingMask = 1 << 0;
}
}
import UnityEngine
import System.Collections
class example(
MonoBehaviour):
def
Awake():
light.cullingMask = (1 << 0)