Files
Two-World/Assets/Cainos/Third Party/Lucid Editor/Runtime/PropertyGroupAttribute.cs
2025-05-08 16:03:30 +09:00

20 lines
537 B
C#

using System;
using System.Linq;
namespace Cainos.LucidEditor
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class PropertyGroupAttribute : Attribute
{
public readonly string path;
public readonly string name;
public readonly int groupDepth;
public PropertyGroupAttribute(string groupPath)
{
this.path = groupPath;
name = path.Split('/').Last();
groupDepth = path.Count(x => x == '/');
}
}
}