Version 3.3.1.2

Odin has a dedicated attribute overview with examples

ResponsiveButtonGroupAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[IncludeMyAttributes]
[ShowInInspector]
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
[Conditional("UNITY_EDITOR")]
public class ResponsiveButtonGroupAttribute : PropertyGroupAttribute, _Attribute
Groups buttons into a group that will position and resize the buttons based on the amount of available layout space.
Inheritance
Example
[ResponsiveButtonGroup]
public void Foo() { }

[ResponsiveButtonGroup]
public void Bar() { }

[ResponsiveButtonGroup]
public void Baz() { }
Example
[ResponsiveButtonGroup(UniformLayout = true)]
public void Foo() { }

[ResponsiveButtonGroup]
public void Bar() { }

[ResponsiveButtonGroup]
public void Baz() { }
Example
[ResponsiveButtonGroupAttribute(UniformLayout = true, DefaultButtonSize = ButtonSizes.Large)]
public void Foo() { }

[GUIColor(0, 1, 0))]
[Button(ButtonSizes.Large)]
[ResponsiveButtonGroup]
public void Bar() { }

[ResponsiveButtonGroup]
public void Baz() { }
Example
[TabGroup("SomeTabGroup", "SomeTab")]
[ResponsiveButtonGroup("SomeTabGroup/SomeTab/SomeBtnGroup")]
public void Foo() { }

[ResponsiveButtonGroup("SomeTabGroup/SomeTab/SomeBtnGroup")]
public void Bar() { }

[ResponsiveButtonGroup("SomeTabGroup/SomeTab/SomeBtnGroup")]
public void Baz() { }

Constructors

ResponsiveButtonGroupAttribute(String)
Draws a button that will be placed in a group that will respond to the horizontal space available to the group.
public ResponsiveButtonGroupAttribute(string group = "_DefaultResponsiveButtonGroup")
Parameters
System.String group

The name of the group to place the button in.

Fields

DefaultButtonSize
The default size of the button.
public ButtonSizes DefaultButtonSize
UniformLayout
If true then the widths of a line of buttons will be the same.
public bool UniformLayout

Methods

CombineValuesWith(PropertyGroupAttribute)
Merges the values of this group with another ResponsiveButtonGroupAttribute.
protected override void CombineValuesWith(PropertyGroupAttribute other)
Parameters
PropertyGroupAttribute other

The attribute to combine with.