Namespace: | Sirenix.OdinInspector |
Assembly: | Sirenix.OdinInspector.Attributes |
[IncludeMyAttributes]
[ShowInInspector]
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
[Conditional("UNITY_EDITOR")]
public class ResponsiveButtonGroupAttribute : PropertyGroupAttribute, _Attribute
[ResponsiveButtonGroup]
public void Foo() { }
[ResponsiveButtonGroup]
public void Bar() { }
[ResponsiveButtonGroup]
public void Baz() { }
[ResponsiveButtonGroup(UniformLayout = true)]
public void Foo() { }
[ResponsiveButtonGroup]
public void Bar() { }
[ResponsiveButtonGroup]
public void Baz() { }
[ResponsiveButtonGroupAttribute(UniformLayout = true, DefaultButtonSize = ButtonSizes.Large)]
public void Foo() { }
[GUIColor(0, 1, 0))]
[Button(ButtonSizes.Large)]
[ResponsiveButtonGroup]
public void Bar() { }
[ResponsiveButtonGroup]
public void Baz() { }
[TabGroup("SomeTabGroup", "SomeTab")]
[ResponsiveButtonGroup("SomeTabGroup/SomeTab/SomeBtnGroup")]
public void Foo() { }
[ResponsiveButtonGroup("SomeTabGroup/SomeTab/SomeBtnGroup")]
public void Bar() { }
[ResponsiveButtonGroup("SomeTabGroup/SomeTab/SomeBtnGroup")]
public void Baz() { }
public ResponsiveButtonGroupAttribute(string group = "_DefaultResponsiveButtonGroup")
System.String | group | The name of the group to place the button in. |
public ButtonSizes DefaultButtonSize
true
then the widths of a line of buttons will be the same.
public bool UniformLayout
protected override void CombineValuesWith(PropertyGroupAttribute other)
PropertyGroupAttribute | other | The attribute to combine with. |