API reference
API reference
Select your platform
No SDKs available
No versions available

Button Class

This is a MonoBehaviour used for generic Button UI element.
Normally serves as the base component for more specific functioned buttons in Immersive Debugger. Contains logic for handling events with Callback and a standard pattern of haptics (HapticsClip is played upon hovering). For more info about Immersive Debugger, check out the official doc

Properties

Callback : Action
[Get][Set]
The callback that is invoked upon clicking the button UI (from the overriden OnPointerClick function).
Signature
Action Callback

Protected Methods

OnHoverChanged ()
Signature
override void OnHoverChanged()
Returns
override void

Methods

OnPointerClick ()
The overriden function from the PointerHandler ancestor class.
Invoking the Callback within the same class.
Signature
override void OnPointerClick()
Returns
override void