Tri-Inspector/Runtime/Attributes/DeclareFoldoutGroupAttribute.cs

18 lines
485 B
C#

using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)]
[Conditional("UNITY_EDITOR")]
public class DeclareFoldoutGroupAttribute : DeclareGroupBaseAttribute
{
public DeclareFoldoutGroupAttribute(string path) : base(path)
{
Title = path;
}
public string Title { get; set; }
public bool Expanded { get; set; }
}
}