Tri-Inspector/Runtime/Attributes/GroupNextAttribute.cs
2022-08-27 14:53:48 +03:00

27 lines
709 B
C#

using System;
using System.Diagnostics;
using JetBrains.Annotations;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public class GroupNextAttribute : Attribute
{
public GroupNextAttribute(string path)
{
Path = path;
}
[CanBeNull] public string Path { get; }
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public class UnGroupNextAttribute : GroupNextAttribute
{
public UnGroupNextAttribute() : base(null)
{
}
}
}