Tri-Inspector/Editor.Extras/GroupDrawers/TriHorizontalGroupDrawer.cs

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);
}
}
}