LightType.Directional Manual     Reference     Scripting  
Scripting > Enumerations > LightType
LightType.Directional

LightType.Directional

Description

The light is a directional light.

See Also: Light.type, light component.

JavaScripts
// Make the light a directional light
light.type = LightType.Directional;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
light.type = LightType.Directional;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
light.type = LightType.Directional