Tri-Inspector/Runtime/Attributes/PropertyOrderAttribute.cs
2022-01-05 14:59:05 +03:00

17 lines
405 B
C#

using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class PropertyOrderAttribute : Attribute
{
public int Order { get; }
public PropertyOrderAttribute(int order)
{
Order = order;
}
}
}