Class Light
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
[RequireComponent(typeof(Transform))]
public sealed class Light : Behaviour
Properties
|
Improve this Doc
View Source
alreadyLightmapped
Declaration
[Obsolete("Light.alreadyLightmapped is no longer supported. Use Light.bakingOutput instead. Allowing to describe mixed light on top of realtime and baked ones.", false)]
public bool alreadyLightmapped { get; set; }
Property Value
areaSize
Declaration
public Vector2 areaSize { get; set; }
Property Value
|
Improve this Doc
View Source
attenuate
Declaration
[Obsolete("light.attenuate was removed; all lights always attenuate now", true)]
public bool attenuate { get; set; }
Property Value
bakingOutput
Declaration
public LightBakingOutput bakingOutput { get; set; }
Property Value
bounceIntensity
Declaration
public float bounceIntensity { get; set; }
Property Value
color
Declaration
public Color color { get; set; }
Property Value
colorTemperature
Declaration
public float colorTemperature { get; set; }
Property Value
commandBufferCount
Declaration
public int commandBufferCount { get; }
Property Value
cookie
Declaration
public Texture cookie { get; set; }
Property Value
cookieSize
Declaration
public float cookieSize { get; set; }
Property Value
cullingMask
Declaration
public int cullingMask { get; set; }
Property Value
flare
Declaration
public Flare flare { get; set; }
Property Value
intensity
Declaration
public float intensity { get; set; }
Property Value
|
Improve this Doc
View Source
isBaked
Declaration
[Obsolete("Light.isBaked is no longer supported. Use Light.bakingOutput.isBaked (and other members of Light.bakingOutput) instead.", false)]
public bool isBaked { get; }
Property Value
layerShadowCullDistances
Declaration
public float[] layerShadowCullDistances { get; set; }
Property Value
lightmapBakeType
Declaration
public LightmapBakeType lightmapBakeType { get; set; }
Property Value
|
Improve this Doc
View Source
lightmappingMode
Declaration
[Obsolete("Light.lightmappingMode has been deprecated. Use Light.lightmapBakeType instead (UnityUpgradable) -> lightmapBakeType", true)]
public LightmappingMode lightmappingMode { get; set; }
Property Value
lightShadowCasterMode
Declaration
public LightShadowCasterMode lightShadowCasterMode { get; set; }
Property Value
|
Improve this Doc
View Source
pixelLightCount
Declaration
[Obsolete("Use QualitySettings.pixelLightCount instead.")]
public static int pixelLightCount { get; set; }
Property Value
range
Declaration
public float range { get; set; }
Property Value
renderMode
Declaration
public LightRenderMode renderMode { get; set; }
Property Value
shadowAngle
Declaration
public float shadowAngle { get; set; }
Property Value
shadowBias
Declaration
public float shadowBias { get; set; }
Property Value
|
Improve this Doc
View Source
shadowConstantBias
Declaration
[Obsolete("light.shadowConstantBias was removed, use light.shadowBias", true)]
public float shadowConstantBias { get; set; }
Property Value
shadowCustomResolution
Declaration
public int shadowCustomResolution { get; set; }
Property Value
shadowNearPlane
Declaration
public float shadowNearPlane { get; set; }
Property Value
shadowNormalBias
Declaration
public float shadowNormalBias { get; set; }
Property Value
|
Improve this Doc
View Source
shadowObjectSizeBias
Declaration
[Obsolete("light.shadowObjectSizeBias was removed, use light.shadowBias", true)]
public float shadowObjectSizeBias { get; set; }
Property Value
shadowRadius
Declaration
public float shadowRadius { get; set; }
Property Value
shadowResolution
Declaration
public LightShadowResolution shadowResolution { get; set; }
Property Value
shadows
Declaration
public LightShadows shadows { get; set; }
Property Value
shadowStrength
Declaration
public float shadowStrength { get; set; }
Property Value
spotAngle
Declaration
public float spotAngle { get; set; }
Property Value
type
Declaration
public LightType type { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AddCommandBuffer(LightEvent, CommandBuffer)
Declaration
public void AddCommandBuffer(LightEvent evt, CommandBuffer buffer)
Parameters
AddCommandBuffer(LightEvent, CommandBuffer, ShadowMapPass)
Declaration
public void AddCommandBuffer(LightEvent evt, CommandBuffer buffer, ShadowMapPass shadowPassMask)
Parameters
|
Improve this Doc
View Source
AddCommandBufferAsync(LightEvent, CommandBuffer, ComputeQueueType)
Declaration
public void AddCommandBufferAsync(LightEvent evt, CommandBuffer buffer, ComputeQueueType queueType)
Parameters
AddCommandBufferAsync(LightEvent, CommandBuffer, ShadowMapPass, ComputeQueueType)
Declaration
public void AddCommandBufferAsync(LightEvent evt, CommandBuffer buffer, ShadowMapPass shadowPassMask, ComputeQueueType queueType)
Parameters
GetCommandBuffers(LightEvent)
Declaration
public CommandBuffer[] GetCommandBuffers(LightEvent evt)
Parameters
Returns
GetLights(LightType, Int32)
Declaration
public static Light[] GetLights(LightType type, int layer)
Parameters
Returns
RemoveAllCommandBuffers()
Declaration
public void RemoveAllCommandBuffers()
RemoveCommandBuffer(LightEvent, CommandBuffer)
Declaration
public void RemoveCommandBuffer(LightEvent evt, CommandBuffer buffer)
Parameters
RemoveCommandBuffers(LightEvent)
Declaration
public void RemoveCommandBuffers(LightEvent evt)
Parameters
Reset()
Declaration
SetLightDirty()
Declaration
public void SetLightDirty()
Extension Methods