docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Light2DProvider

    Class Light2DProvider has methods called in URP 2D which can be used to create custom lights.

    Inheritance
    object
    Provider2D
    Light2DProvider
    Inherited Members
    Provider2D.MenuPriority()
    Provider2D.UsesComponentData()
    Provider2D.OnAwake()
    Provider2D.OnSelected()
    Provider2D.OnDrawGizmos(Transform)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)