[ButtonWidth]

Attribute used for setting a fixed width for the method button.

Parameters

Parameter Name
Type
Description

width

float

Button width in pixels.

Optional Parameters

Parameter Name
Type
Description

Alignment

TextAlignment

Button alignment when using fixed width.

Examples

[Button]
[ButtonWidth(100)]
public void FixedWidthButton()
{
    // ...
}

[Button]
[ButtonWidth(100, Alignment = TextAlignment.Left)]
public void LeftAlignedButton()
{
    // ...
}

Last updated