Manual     Reference     Scripting  
  
Scripting > Enumerations > LightType   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Attributes
  • Enumerations
  • History
  • Index
  • LightType
  • All Members
  • Values
  • Area
  • Directional
  • Point
  • Spot

LightType.Point  

LightType.Point

Description

The light is a point light.

See Also: Light.type, light component.

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

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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