Class UniversalAdditionalLightData
Class containing various additional light data used by URP.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[DisallowMultipleComponent]
[RequireComponent(typeof(Light))]
public class UniversalAdditionalLightData : MonoBehaviour, ISerializationCallbackReceiver, IAdditionalData
Fields
Name | Description |
---|---|
AdditionalLightsShadowDefaultCustomResolution | The default custom shadow resolution for additional lights. |
AdditionalLightsShadowDefaultResolutionTier | The default shadow resolution tier for additional lights. |
AdditionalLightsShadowMinimumResolution | The minimum shadow resolution for additional lights. |
AdditionalLightsShadowResolutionTierCustom | Value used to indicate custom shadow resolution tier for additional lights. |
AdditionalLightsShadowResolutionTierHigh | Value used to indicate high shadow resolution tier for additional lights. |
AdditionalLightsShadowResolutionTierLow | Value used to indicate low shadow resolution tier for additional lights. |
AdditionalLightsShadowResolutionTierMedium | Value used to indicate medium shadow resolution tier for additional lights. |
Properties
Name | Description |
---|---|
additionalLightsShadowResolutionTier | Returns the selected shadow resolution tier. |
customShadowLayers | Indicates whether shadows need custom layers. If not, then it uses the same settings as lightLayerMask. |
lightCookieOffset | Controls the offset of the cookie mask currently assigned to the light. |
lightCookieSize | Controls the size of the cookie mask currently assigned to the light. |
renderingLayers | Specifies which rendering layers this light will affect. |
shadowRenderingLayers | Specifies which rendering layers this light shadows will affect. |
softShadowQuality | Light soft shadow filtering quality. |
usePipelineSettings | Controls if light Shadow Bias parameters use pipeline settings or not. |
Methods
Name | Description |
---|---|
OnAfterDeserialize() | |
OnBeforeSerialize() |