LightType.Area Manual     Reference     Scripting  
Scripting > Enumerations > LightType
LightType.Area

LightType.Area

Description

The light is an area light. It affects only lightmaps and lightprobes.

See Also: Light.type, light component.

JavaScript
// Make the light an area light
light.type = LightType.Area;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
light.type = LightType.Area