Automatically choose the render mode.
// Set light's render mode to automatic light.renderMode = LightRenderMode.Auto;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { light.renderMode = LightRenderMode.Auto; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: light.renderMode = LightRenderMode.Auto