Add assets
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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 == '/');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user