Light
.type
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
Light
Light
.type
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
Light
All Members
Variables
color
cookie
cullingMask
flare
intensity
range
renderMode
shadowBias
shadows
shadowSoftness
shadowSoftnessFade
shadowStrength
spotAngle
type
Inherited Variables
animation
audio
camera
collider
constantForce
enabled
gameObject
guiText
guiTexture
hideFlags
hingeJoint
light
name
networkView
particleEmitter
renderer
rigidbody
tag
transform
Inherited Functions
BroadcastMessage
CompareTag
GetComponent
GetComponent.<T>
GetComponentInChildren
GetComponentInChildren.<T>
GetComponents
GetComponents.<T>
GetComponentsInChildren
GetComponentsInChildren.<T>
GetInstanceID
SendMessage
SendMessageUpwards
ToString
Inherited Class Functions
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
Instantiate
Instantiate.<T>
operator !=
operator ==
operator bool
var
type :
LightType
Description
The type of the light.
Can be
LightType.Spot
,
LightType.Directional
,
LightType.Point
.
JavaScripts
JavaScript
C#
Boo
// Make the light a spot light
light.type =
LightType.Spot
;
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
light.type =
LightType.Spot
;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
light.type =
LightType.Spot
See Also:
Light component