Class UniversalAdditionalLightData
Class containing various additional light data used by URP.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Syntax
[DisallowMultipleComponent]
[RequireComponent(typeof(Light))]
public class UniversalAdditionalLightData : MonoBehaviour, ISerializationCallbackReceiver, IAdditionalDataFields
AdditionalLightsShadowDefaultCustomResolution
The default custom shadow resolution for additional lights.
Declaration
public static readonly int AdditionalLightsShadowDefaultCustomResolutionField Value
| Type | Description | 
|---|---|
| Int32 | 
AdditionalLightsShadowDefaultResolutionTier
The default shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowDefaultResolutionTierField Value
| Type | Description | 
|---|---|
| Int32 | 
AdditionalLightsShadowMinimumResolution
The minimum shadow resolution for additional lights.
Declaration
public static readonly int AdditionalLightsShadowMinimumResolutionField Value
| Type | Description | 
|---|---|
| Int32 | 
AdditionalLightsShadowResolutionTierCustom
Value used to indicate custom shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowResolutionTierCustomField Value
| Type | Description | 
|---|---|
| Int32 | 
AdditionalLightsShadowResolutionTierHigh
Value used to indicate high shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowResolutionTierHighField Value
| Type | Description | 
|---|---|
| Int32 | 
AdditionalLightsShadowResolutionTierLow
Value used to indicate low shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowResolutionTierLowField Value
| Type | Description | 
|---|---|
| Int32 | 
AdditionalLightsShadowResolutionTierMedium
Value used to indicate medium shadow resolution tier for additional lights.
Declaration
public static readonly int AdditionalLightsShadowResolutionTierMediumField Value
| Type | Description | 
|---|---|
| Int32 | 
Properties
additionalLightsShadowResolutionTier
Returns the selected shadow resolution tier.
Declaration
public int additionalLightsShadowResolutionTier { get; }Property Value
| Type | Description | 
|---|---|
| Int32 | 
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 | 
|---|---|
| Boolean | 
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 | 
|---|---|
| UInt32 | 
shadowRenderingLayers
Specifies which rendering layers this light shadows will affect.
Declaration
public uint shadowRenderingLayers { get; set; }Property Value
| Type | Description | 
|---|---|
| UInt32 | 
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 | 
|---|---|
| Boolean | 
Methods
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()Implements
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()