using System;
namespace UnityEngine.Rendering.Universal
{
///
/// Prevents ScriptableRendererFeatures of same type to be added more than once to a Scriptable Renderer.
///
[AttributeUsage(AttributeTargets.Class)]
public class DisallowMultipleRendererFeature : Attribute
{
///
/// Set the custom title for renderer feature.
///
public string customTitle { private set; get; }
///
/// Constructor for the attribute to prevent ScriptableRendererFeatures of same type to be added more than once to a Scriptable Renderer.
///
/// Sets the custom title for renderer feature.
public DisallowMultipleRendererFeature(string customTitle = null)
{
this.customTitle = customTitle;
}
}
}