Overview
The button control type provides the functionality of a basic button. That is, when clicked/tapped, something happens.
|
Classes
UIButton UIButton3D Buttons also come in some special varieties which offer very specific functionality. |
Interactivity
The Button control type executes code in response to user input by invoking a method on a MonoBehavior (specified by setting the "Script With Method To Invoke" and "Method To Invoke" properties), and/or by calling a delegate, set by calling the SetInputDelegate() method through script. When an event matching "When To Invoke" occurs, any registered EZValueChangedDelegate delegate will be called. |
Control-specific Properties
Sound On Over - The sound to play when the pointing device passes over the button. Sound On Click - The sound to be played when the button is clicked/tapped. Repeat - When set to true, any associated value change delegate/invoke will be called each frame as long as the button is pressed. Always Finish Active Transition - When checked, the button will wait for any "Active" state transition (the transition which runs when the control enters its "Active" state) to fully complete before playing any other state transition. This is so that if you fire a transition when the button is clicked (active), then even though the click was immediately released (which would normally immediately transition the button back to an "Over" state), the button's active transition will complete before playing the appropriate "Over" state transition. |
States
|
Special Button TypesBelow are a few special button types
|