Force the Light to be a pixel light.
Use this only for really important lights, like a player flashlight. See Also: light component.
// Force the light to be pixel-litlight.renderMode = LightRenderMode.ForcePixel;
using UnityEngine;using System.Collections;public class example : MonoBehaviour { void Example() { light.renderMode = LightRenderMode.ForcePixel; }}
import UnityEngineimport System.Collectionsclass example(MonoBehaviour): def Example(): light.renderMode = LightRenderMode.ForcePixel