CustomDwellHandler 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 to demonstrate DwellHandler override when a custom profile is used This example script works with the DwellProfileWithDecay custom profile.
public ref class CustomDwellHandler : Microsoft::MixedReality::Toolkit::Experimental::Dwell::DwellHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/CustomDwellHandler")]
public class CustomDwellHandler : Microsoft.MixedReality.Toolkit.Experimental.Dwell.DwellHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/CustomDwellHandler")>]
type CustomDwellHandler = class
inherit DwellHandler
Public Class CustomDwellHandler
Inherits DwellHandler
- Inheritance
- Attributes
-
UnityEngine.AddComponentMenuAttribute
Current |
Captures the dwell status (Inherited from DwellHandler) |
dwell |
(Inherited from DwellHandler) |
Fill |
Abstracted value for the how long the dwelled object still needs to be focused to complete the dwell action Value ranges from 0 to "TimeToCompleteDwell" setting in the dwellprofile. This picks up the same unit as TimeToCompleteDwell (Inherited from DwellHandler) |
Dwell |
Property exposing the computation for what percentage of dwell has progressed. (Inherited from DwellHandler) |
Has |
Exposes whether the target has focus from the pointer type defined in dwell profile settings (Inherited from DwellHandler) |
Cancel |
Method that can be invoked if external factors (e.g. alternate input modality preemptively invoked the target) force the dwell action to prematurely end (Inherited from DwellHandler) |
On |
(Inherited from DwellHandler) |
On |
(Inherited from DwellHandler) |
On |
(Inherited from DwellHandler) |
On |
(Inherited from DwellHandler) |
Update |
產品 | 版本 |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0 |