User interface button class. More...
Public Member Functions | |
void | UseImageSize () |
void | KeepAspect () |
void | AlignCenter () |
virtual void | Awake () |
virtual void | Start () |
override void | HandleEvents () |
override void | DrawUI () |
Draws the button to the screen. | |
void | OnDrawGizmosSelected () |
Draws a preview of the button in the scene. | |
Static Public Member Functions | |
static UIButton | FromAction (string action) |
Finds a button matching the specified action string or null if none was found. | |
Public Attributes | |
string | buttonAction |
Texture | defaultTexture |
Color | defaultBlend = new Color(.75f, .75f, .75f, 1) |
Texture | hoveredTexture |
Color | hoveredBlend = Color.white |
Texture | pressedTexture |
Color | pressedBlend = new Color(.75f, .75f, .75f, 1) |
float | x = 0.25f * UIManager.designWidth |
float | y = 0.25f * UIManager.designHeight |
float | width = 0.5f * UIManager.designWidth |
float | height = 0.5f * UIManager.designHeight |
Protected Types | |
enum | State { Default, Hovered, Pressed } |
Protected Attributes | |
State[] | state |
State | buttonState |
User interface button class.
override void UIButton.DrawUI | ( | ) | [virtual] |
Draws the button to the screen.
Implements UIBase.
Reimplemented in UICroppedButton, and UISkinButtons.
static UIButton UIButton.FromAction | ( | string | action | ) | [static] |
Finds a button matching the specified action string or null if none was found.
void UIButton.OnDrawGizmosSelected | ( | ) |
Draws a preview of the button in the scene.