Edit

Share via


ToggleDwellSample Class

Definition

Example script to demonstrate a toggle button using dwell

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

Constructors

ToggleDwellSample()

Fields

dwellVisualImage (Inherited from BaseDwellSample)
targetButton (Inherited from BaseDwellSample)

Properties

DwellHandler

The dwell handler associated with the target

(Inherited from BaseDwellSample)
IsDwelling

Whether the targeting is being dwelled on

(Inherited from BaseDwellSample)

Methods

Awake()

Assign the DwellHandler at Awake()

(Inherited from BaseDwellSample)
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