Manual     Reference     Scripting  
  
Scripting > Enumerations > LightRenderMode   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • LightRenderMode
  • All Members
  • Values
  • Auto
  • ForcePixel
  • ForceVertex

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.

JavaScripts
// Force the light to be pixel-lit

light.renderMode = LightRenderMode.ForcePixel;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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