LightRenderMode.Auto Manual     Reference     Scripting  
Scripting > Enumerations > LightRenderMode
LightRenderMode.Auto

LightRenderMode.Auto

Description

Automatically choose the render mode.

This chooses whether to render the Light as a pixel or vertex light (recommended and default). See Also: light component.

JavaScript
// 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

class example(MonoBehaviour):

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