Class LightExtensions
Contains extension methods for Light class.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Syntax
public static class LightExtensions
Methods
GetUniversalAdditionalLightData(Light)
Universal Render Pipeline exposes additional light data in a separate component. This method returns the additional data component for the given light or create one if it doesn't exist yet.
Declaration
public static UniversalAdditionalLightData GetUniversalAdditionalLightData(this Light light)
Parameters
Type | Name | Description |
---|---|---|
Light | light |
Returns
Type | Description |
---|---|
UniversalAdditionalLightData | The |