Class PhysicalPressEventRouter
This class exists to route PressableButton events through to Interactable. The result is being able to have physical touch call Interactable.OnPointerClicked.
Implements
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public class PhysicalPressEventRouter : MonoBehaviour, MonoBehaviour
Fields
InteractableOnClick
Declaration
public PhysicalPressEventRouter.PhysicalPressEventBehavior InteractableOnClick
Field Value
Type | Description |
---|---|
PhysicalPressEventRouter.PhysicalPressEventBehavior |
InteractableOnClick
Declaration
public PhysicalPressEventRouter.PhysicalPressEventBehavior InteractableOnClick
Field Value
Type | Description |
---|---|
PhysicalPressEventRouter.PhysicalPressEventBehavior |
routingTarget
Declaration
public Interactable routingTarget
Field Value
Type | Description |
---|---|
Interactable |
routingTarget
Declaration
public Interactable routingTarget
Field Value
Type | Description |
---|---|
Interactable |
Methods
OnHandPressCompleted()
Gets called when the ButtonReleased event is invoked within the default PressableButton and PressableButtonHoloLens2 components. Once the physical press with a hand is completed, set the press and physical touch states within Interactable
Declaration
public void OnHandPressCompleted()
OnHandPressCompleted()
Gets called when the ButtonReleased event is invoked within the default PressableButton and PressableButtonHoloLens2 components. Once the physical press with a hand is completed, set the press and physical touch states within Interactable
Declaration
public void OnHandPressCompleted()
OnHandPressTouched()
Gets called when the TouchBegin event is invoked within the default PressableButton and PressableButtonHoloLens2 components. When the physical touch with a hand has begun, set physical touch state within Interactable.
Declaration
public void OnHandPressTouched()
OnHandPressTouched()
Gets called when the TouchBegin event is invoked within the default PressableButton and PressableButtonHoloLens2 components. When the physical touch with a hand has begun, set physical touch state within Interactable.
Declaration
public void OnHandPressTouched()
OnHandPressTriggered()
Gets called when the ButtonPressed event is invoked within the default PressableButton and PressableButtonHoloLens2 components. When the physical press with a hand is triggered, set the physical touch and press state within Interactable.
Declaration
public void OnHandPressTriggered()
OnHandPressTriggered()
Gets called when the ButtonPressed event is invoked within the default PressableButton and PressableButtonHoloLens2 components. When the physical press with a hand is triggered, set the physical touch and press state within Interactable.
Declaration
public void OnHandPressTriggered()
OnHandPressUntouched()
Gets called when the TouchEnd event is invoked within the default PressableButton and PressableButtonHoloLens2 components. Once the physical touch with a hand is removed, set the physical touch and possibly press state within Interactable.
Declaration
public void OnHandPressUntouched()
OnHandPressUntouched()
Gets called when the TouchEnd event is invoked within the default PressableButton and PressableButtonHoloLens2 components. Once the physical touch with a hand is removed, set the physical touch and possibly press state within Interactable.
Declaration
public void OnHandPressUntouched()