LightRenderMode.ForcePixel

LightRenderMode.ForcePixel

Description

Force the Light to be a pixel light.

Use this only for really important lights, like a player flashlight. See Also: light component.

JavaScript
    // Force the light to be pixel-lit
light.renderMode = LightRenderMode.ForcePixel;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
light.renderMode = LightRenderMode.ForcePixel;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
light.renderMode = LightRenderMode.ForcePixel