Firstborn/Library/PackageCache/com.unity.render-pipelines..../Runtime/RendererFeatures/DisallowMultipleRendererFea...
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

22 lines
636 B
C#

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