ToggleDwellPressableButton Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes
-
UnityEngine.AddComponentMenuAttribute
dwell |
(Inherited from BaseDwellPressableButton) |
target |
(Inherited from BaseDwellPressableButton) |
Dwell |
The dwell handler associated with the target (Inherited from BaseDwellPressableButton) |
Is |
Whether the targeting is being dwelled on (Inherited from BaseDwellPressableButton) |
Awake() |
Assign the DwellHandler at Awake() (Inherited from BaseDwellPressableButton) |
Button |
Function called when the target button is pressed |
Dwell |
Function called when entering dwell canceled state |
Dwell |
Function called when entering dwell completed state |
Dwell |
Function called when entering dwell intended state |
Dwell |
Function called when entering dwell started state |
منتج | الإصدارات |
---|---|
MRTK2 Unity 2018 | 2.7.0 |
MRTK2 Unity 2019 | 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.7.0, 2.8.0 |