using System;
using System.Collections.Generic;
using Unity.Collections;
using UnityEngine;
namespace UnityEngine.Rendering.Universal
{
///
/// Class Light2DProvider has methods called in URP 2D which can be used to create custom lights.
///
[Serializable]
public class Light2DProvider : Provider2D
{
///
/// Returns the display name shown in the Light Type dropdown of the Light2D component.
///
/// The GUIContent used in the Light2D Light Type dropdown.
public virtual GUIContent ProviderName() { return new GUIContent("Custom Light Provider", "Implemented by " + this.GetType().Name); }
///
/// Returns the mesh used to render the Light2D.
///
/// The mesh used for rendering.
public virtual Mesh GetMesh() { return null; }
///
/// Internal entry point used by the rendering pipeline to retrieve the provider name.
///
internal override GUIContent Internal_ProviderName(string componentName) { return ProviderName(); }
}
}