LightType
.Directional
Manual
Reference
Scripting
Scripting
>
Enumerations
>
LightType
LightType
.Directional
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
LightType
All Members
Values
Directional
Point
Spot
LightType.Directional
Description
The light is a directional light.
See Also:
Light.type
,
light component
.
JavaScripts
JavaScript
C#
Boo
// 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