A game about forced loneliness, made by TACStudios
1# Button
2
3The **Button** control responds to a click from the user and is used to initiate or confirm an action. Familiar examples include the _Submit_ and _Cancel_ buttons used on web forms.
4
5
6
7
8
9## Properties
10
11|**Property:** |**Function:** |
12|:---|:---|
13|**Interactable** | Enable **Interactable** if you want this button to accept input. See API documentation on [Interactable](script-Selectable.md) for more details. |
14|**Transition** | Properties that determine the way the control responds visually to user actions. See [Transition Options](script-SelectableTransition.md). |
15|**Navigation** | Properties that determine the sequence of controls. See [Navigation Options](script-SelectableNavigation.md).|
16
17## Events
18
19|**Property:** |**Function:** |
20|:---|:---|
21|**On Click** | A [UnityEvent](https://docs.unity3d.com/Manual/UnityEvents.html) that Unity invokes when a user clicks the button and releases it.|
22
23
24## Details
25
26The button is designed to initiate an action when the user clicks and releases it. If the mouse is moved off the button control before the click is released, the action does not take place.
27
28The button has a single event called _On Click_ that responds when the user completes a click. Typical use cases include:
29
30* Confirming a decision (eg, starting gameplay or saving a game)
31* Moving to a sub-menu in a GUI
32* Cancelling an action in progress (eg, downloading a new scene)