ToggleDwellPressableButton Class

Definition

Example script to demonstrate a toggle button using dwell This script uses _BorderWidth property of Mixed Reality Standard Shader

public ref class ToggleDwellPressableButton : Microsoft::MixedReality::Toolkit::Dwell::BaseDwellPressableButton
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/ToggleDwellPressableButton")]
public class ToggleDwellPressableButton : Microsoft.MixedReality.Toolkit.Dwell.BaseDwellPressableButton
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/ToggleDwellPressableButton")>]
type ToggleDwellPressableButton = class
    inherit BaseDwellPressableButton
Public Class ToggleDwellPressableButton
Inherits BaseDwellPressableButton
Inheritance
UnityEngine.MonoBehaviour
ToggleDwellPressableButton
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

ToggleDwellPressableButton()

Fields

dwellVisualImage (Inherited from BaseDwellPressableButton)
targetButton (Inherited from BaseDwellPressableButton)

Properties

DwellHandler

The dwell handler associated with the target

(Inherited from BaseDwellPressableButton)
IsDwelling

Whether the targeting is being dwelled on

(Inherited from BaseDwellPressableButton)

Methods

Awake()

Assign the DwellHandler at Awake()

(Inherited from BaseDwellPressableButton)
ButtonExecute()

Function called when the target button is pressed

DwellCanceled(IMixedRealityPointer)

Function called when entering dwell canceled state

DwellCompleted(IMixedRealityPointer)

Function called when entering dwell completed state

DwellIntended(IMixedRealityPointer)

Function called when entering dwell intended state

DwellStarted(IMixedRealityPointer)

Function called when entering dwell started state

Applies to