Base class for buttons.
More...
Base class for buttons.
Definition at line 14 of file Button.cs.
§ DoButtonCanceled()
| void HoloToolkit.Unity.Buttons.Button.DoButtonCanceled |
( |
| ) |
|
|
protected |
Called when something interrupts the button pressed state.
Definition at line 341 of file Button.cs.
§ DoButtonClicked()
| void HoloToolkit.Unity.Buttons.Button.DoButtonClicked |
( |
| ) |
|
|
protected |
§ DoButtonHeld()
| void HoloToolkit.Unity.Buttons.Button.DoButtonHeld |
( |
| ) |
|
|
protected |
Called once after the button is held down.
Definition at line 330 of file Button.cs.
§ DoButtonPressed()
| void HoloToolkit.Unity.Buttons.Button.DoButtonPressed |
( |
| ) |
|
|
protected |
Called when the button is pressed down.
Definition at line 290 of file Button.cs.
§ DoButtonReleased()
| void HoloToolkit.Unity.Buttons.Button.DoButtonReleased |
( |
| ) |
|
|
protected |
Called when the button is released.
Definition at line 309 of file Button.cs.
§ OnDisable()
| virtual void HoloToolkit.Unity.Buttons.Button.OnDisable |
( |
| ) |
|
|
protectedvirtual |
Ensures the button returns to a neutral state when disabled
Definition at line 135 of file Button.cs.
§ OnFocusEnter()
§ OnFocusExit()
§ OnHandVisibleChange()
| virtual void HoloToolkit.Unity.Buttons.Button.OnHandVisibleChange |
( |
bool |
visible | ) |
|
|
virtual |
Event to fire off when hand/spatial input source visibility changes.
- Parameters
-
| visible | Whether the spatial input source is has become visible. |
Definition at line 355 of file Button.cs.
§ OnHoldCanceled()
| void HoloToolkit.Unity.Buttons.Button.OnHoldCanceled |
( |
HoldEventData |
eventData | ) |
|
§ OnHoldCompleted()
| void HoloToolkit.Unity.Buttons.Button.OnHoldCompleted |
( |
HoldEventData |
eventData | ) |
|
§ OnHoldStarted()
| void HoloToolkit.Unity.Buttons.Button.OnHoldStarted |
( |
HoldEventData |
eventData | ) |
|
§ OnInputClicked()
§ OnInputDown()
| void HoloToolkit.Unity.Buttons.Button.OnInputDown |
( |
InputEventData |
eventData | ) |
|
§ OnInputUp()
| void HoloToolkit.Unity.Buttons.Button.OnInputUp |
( |
InputEventData |
eventData | ) |
|
§ OnStateChange()
| virtual void HoloToolkit.Unity.Buttons.Button.OnStateChange |
( |
ButtonStateEnum |
newState | ) |
|
|
virtual |
§ TriggerClicked()
| void HoloToolkit.Unity.Buttons.Button.TriggerClicked |
( |
| ) |
|
Public function to force a clicked event on a button.
Definition at line 417 of file Button.cs.
§ _GizmoIcon
| string HoloToolkit.Unity.Buttons.Button._GizmoIcon |
|
protected |
Protected string for the current active gizmo icon
Definition at line 95 of file Button.cs.
§ ButtonPressFilter
Filter to apply for the correct button source.
Definition at line 40 of file Button.cs.
§ ButtonState
§ RequireGaze
| bool HoloToolkit.Unity.Buttons.Button.RequireGaze |
|
getset |
If true, the interactable will deselect when you look off of the object.
Definition at line 53 of file Button.cs.
§ OnButtonCanceled
| Action<GameObject> HoloToolkit.Unity.Buttons.Button.OnButtonCanceled |
Event fired when button interaction canceled.
Definition at line 86 of file Button.cs.
§ OnButtonClicked
| Action<GameObject> HoloToolkit.Unity.Buttons.Button.OnButtonClicked |
Event fired when click interaction received.
Definition at line 76 of file Button.cs.
§ OnButtonHeld
| Action<GameObject> HoloToolkit.Unity.Buttons.Button.OnButtonHeld |
Event fired when hold interaction initiated.
Definition at line 81 of file Button.cs.
§ OnButtonPressed
| Action<GameObject> HoloToolkit.Unity.Buttons.Button.OnButtonPressed |
Event fired when tap interaction received.
Definition at line 66 of file Button.cs.
§ OnButtonReleased
| Action<GameObject> HoloToolkit.Unity.Buttons.Button.OnButtonReleased |
Event fired when released interaction received.
Definition at line 71 of file Button.cs.
§ StateChange
Event to receive button state change.
Definition at line 61 of file Button.cs.
The documentation for this class was generated from the following file:
- Assets/HoloToolkit/UX/Scripts/Buttons/Button.cs