Tri-Inspector/Editor.Samples/Groups/Groups_BoxGroup_StackedSample.cs
2022-07-06 15:50:54 +03:00

30 lines
692 B
C#

using TriInspector;
using UnityEngine;
[DeclareBoxGroup("box", Title = "Box")]
[DeclareHorizontalGroup("box/horizontal")]
[DeclareBoxGroup("box/horizontal/one", Title = "One")]
[DeclareBoxGroup("box/horizontal/two", Title = "Two")]
[DeclareBoxGroup("box/three", Title = "Three")]
public class Groups_BoxGroup_StackedSample : ScriptableObject
{
[Button(ButtonSizes.Large), Group("box/horizontal/one")]
public void ButtonA()
{
}
[Button(ButtonSizes.Large), Group("box/horizontal/two")]
public void ButtonB()
{
}
[Button, Group("box/three")]
public void ButtonC()
{
}
[Button, Group("box/three")]
public void ButtonD()
{
}
}