Class Light2DProvider
Class Light2DProvider has methods called in URP 2D which can be used to create custom lights.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.2D.Runtime.dll
Syntax
[Serializable]
public class Light2DProvider : Provider2D
Methods
GetMesh()
Returns the mesh used to render the Light2D.
Declaration
public virtual Mesh GetMesh()
Returns
| Type | Description |
|---|---|
| Mesh | The mesh used for rendering. |
ProviderName()
Returns the display name shown in the Light Type dropdown of the Light2D component.
Declaration
public virtual GUIContent ProviderName()
Returns
| Type | Description |
|---|---|
| GUIContent | The GUIContent used in the Light2D Light Type dropdown. |