Merge pull request #33 from AnnulusGames/add-inline-group

Add: InlineGroupAttribute
This commit is contained in:
Annulus Games 2024-02-17 21:46:28 +09:00 committed by GitHub
commit ee94d1620c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -222,4 +222,12 @@ namespace Alchemy.Editor.Drawers
return root;
}
}
[CustomGroupDrawer(typeof(InlineGroupAttribute))]
public sealed class InlineGroupDrawer : AlchemyGroupDrawer
{
public override VisualElement CreateRootElement(string label)
{
return new VisualElement();
}
}
}

View File

@ -33,4 +33,9 @@ namespace Alchemy.Inspector
public HorizontalGroupAttribute(string groupPath) : base(groupPath) { }
}
public sealed class InlineGroupAttribute : PropertyGroupAttribute
{
public InlineGroupAttribute() : base() { }
public InlineGroupAttribute(string groupPath) : base(groupPath) { }
}
}