LightType.Point Manual     Reference     Scripting  
Scripting > Enumerations > LightType
LightType.Point

LightType.Point

Description

The light is a point light.

See Also: Light.type, light component.

JavaScripts
// Make the light a point light
light.type = LightType.Point;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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