Files
trail-into-darkness/Packages/com.jovian.inspector/Editor/Attributes/RequireLayerAttribute.cs
2026-03-29 19:16:39 +02:00

21 lines
373 B
C#

using System;
namespace Jovian.InspectorTools
{
[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;
}
}
}