Tri-Inspector/Runtime/Attributes/IndentAttribute.cs
2023-03-12 11:38:39 +04:00

21 lines
452 B
C#

using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public class IndentAttribute : Attribute
{
public int Indent { get; }
public IndentAttribute() : this(1)
{
}
public IndentAttribute(int indent)
{
Indent = indent;
}
}
}