mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 16:28:23 -05:00
17 lines
519 B
C#
17 lines
519 B
C#
using TriInspector;
|
|
using TriInspector.Elements;
|
|
using TriInspector.GroupDrawers;
|
|
using UnityEngine;
|
|
|
|
[assembly: RegisterTriGroupDrawer(typeof(TriHorizontalGroupDrawer))]
|
|
|
|
namespace TriInspector.GroupDrawers
|
|
{
|
|
public class TriHorizontalGroupDrawer : TriGroupDrawer<DeclareHorizontalGroupAttribute>
|
|
{
|
|
public override TriPropertyCollectionBaseElement CreateElement(DeclareHorizontalGroupAttribute attribute)
|
|
{
|
|
return new TriHorizontalGroupElement(attribute.Sizes);
|
|
}
|
|
}
|
|
} |