Files
trail-into-darkness/Packages/com.jovian.inspector/Editor/Attributes/RequireLayerAttribute.cs
2026-03-29 18:59:24 +02:00

21 lines
368 B
C#

using System;
namespace InspectorToolkit
{
[AttributeUsage(AttributeTargets.Class)]
public class RequireLayerAttribute : Attribute
{
public readonly string LayerName;
public readonly int LayerIndex = -1;
public RequireLayerAttribute(string layer)
{
LayerName = layer;
}
public RequireLayerAttribute(int layer)
{
LayerIndex = layer;
}
}
}