Tri-Inspector/Runtime/Attributes/DeclareToggleGroupAttribute.cs

18 lines
502 B
C#
Raw Normal View History

2023-04-09 12:51:22 -04:00
using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)]
[Conditional("UNITY_EDITOR")]
public class DeclareToggleGroupAttribute : DeclareGroupBaseAttribute
{
public DeclareToggleGroupAttribute(string path) : base(path)
{
Title = path;
}
public string Title { get; set; }
public bool Collapsible { get; set; } = true;
}
}