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
AdditionalLightsShadowDefaultCustomResolution
The default custom shadow resolution for additional lights.
Declaration
public static readonly int AdditionalLightsShadowDefaultCustomResolution
Field Value
Type | Description |
---|---|
int |
AdditionalLightsShadowDefaultResolutionTier
The default shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowDefaultResolutionTier
Field Value
Type | Description |
---|---|
int |
AdditionalLightsShadowMinimumResolution
The minimum shadow resolution for additional lights.
Declaration
public static readonly int AdditionalLightsShadowMinimumResolution
Field Value
Type | Description |
---|---|
int |
AdditionalLightsShadowResolutionTierCustom
Value used to indicate custom shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowResolutionTierCustom
Field Value
Type | Description |
---|---|
int |
AdditionalLightsShadowResolutionTierHigh
Value used to indicate high shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowResolutionTierHigh
Field Value
Type | Description |
---|---|
int |
AdditionalLightsShadowResolutionTierLow
Value used to indicate low shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowResolutionTierLow
Field Value
Type | Description |
---|---|
int |
AdditionalLightsShadowResolutionTierMedium
Value used to indicate medium shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowResolutionTierMedium
Field Value
Type | Description |
---|---|
int |
Properties
additionalLightsShadowResolutionTier
Returns the selected shadow resolution tier.
Declaration
public int additionalLightsShadowResolutionTier { get; }
Property Value
Type | Description |
---|---|
int |
customShadowLayers
Indicates whether shadows need custom layers. If not, then it uses the same settings as lightLayerMask.
Declaration
public bool customShadowLayers { get; set; }
Property Value
Type | Description |
---|---|
bool |
lightCookieOffset
Controls the offset of the cookie mask currently assigned to the light.
Declaration
[Tooltip("Controls the offset of the cookie mask currently assigned to the light.")]
public Vector2 lightCookieOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
lightCookieSize
Controls the size of the cookie mask currently assigned to the light.
Declaration
[Tooltip("Controls the size of the cookie mask currently assigned to the light.")]
public Vector2 lightCookieSize { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
renderingLayers
Specifies which rendering layers this light will affect.
Declaration
public uint renderingLayers { get; set; }
Property Value
Type | Description |
---|---|
uint |
shadowRenderingLayers
Specifies which rendering layers this light shadows will affect.
Declaration
public uint shadowRenderingLayers { get; set; }
Property Value
Type | Description |
---|---|
uint |
softShadowQuality
Light soft shadow filtering quality.
Declaration
[Tooltip("Controls the filtering quality of soft shadows. Higher quality has lower performance.")]
public SoftShadowQuality softShadowQuality { get; set; }
Property Value
Type | Description |
---|---|
SoftShadowQuality |
usePipelineSettings
Controls if light Shadow Bias parameters use pipeline settings or not.
Declaration
public bool usePipelineSettings { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()