Scheduled Maintenance
9th of July 2025 at 10:00 AM, we'll be taking the site down for scheduled maintenance.

Button Group Attribute

ButtonGroup is used on any instance function, and adds buttons to the inspector organized into horizontal groups. Use this to organize multiple button in a tidy horizontal group.

public IconButtonGroupExamples iconButtonGroupExamples; [ButtonGroup] private void A() { } [ButtonGroup] private void B() { } [ButtonGroup] private void C() { } [ButtonGroup] private void D() { } [Button(ButtonSizes.Large)] [ButtonGroup("My Button Group")] private void E() { } [GUIColor(0, 1, 0)] [ButtonGroup("My Button Group")] private void F() { } [Serializable, HideLabel] public struct IconButtonGroupExamples { [ButtonGroup(ButtonHeight = 25), Button(SdfIconType.ArrowsMove, "")] void ArrowsMove() { } [ButtonGroup, Button(SdfIconType.Crop, "")] void Crop() { } [ButtonGroup, Button(SdfIconType.TextLeft, "")] void TextLeft() { } [ButtonGroup, Button(SdfIconType.TextRight, "")] void TextRight() { } [ButtonGroup, Button(SdfIconType.TextParagraph, "")] void TextParagraph() { } [ButtonGroup, Button(SdfIconType.Textarea, "")] void Textarea() { } }