Class HandInteractionPanZoom
Inheritance
HandInteractionPanZoom
Implements
IMixedRealityTouchHandler
IMixedRealityPointerHandler
IMixedRealitySourceStateHandler
Assembly: cs.temp.dll.dll
public class HandInteractionPanZoom : BaseFocusHandler, IMixedRealityTouchHandler, IMixedRealityPointerHandler, IMixedRealitySourceStateHandler
Fields
Declaration
public PanUnityEvent PanStarted
Field Value
Declaration
public PanUnityEvent PanStopped
Field Value
Declaration
public PanUnityEvent PanUpdated
Field Value
Properties
Returns the current pan delta (pan value - previous pan value)
in UV coordinates (0 being no pan, 1, being pan of the entire )
Declaration
public Vector2 CurrentPanDelta { get; }
Property Value
Current scale value. 1 is the original 100%.
Declaration
public float CurrentScale { get; }
Property Value
This Property sets and gets whether a the pan/zoom behavior is active.
Declaration
public bool Enabled { get; set; }
Property Value
Methods
Declaration
public override void OnFocusEnter(FocusEventData eventData)
Parameters
Type |
Name |
Description |
FocusEventData |
eventData |
|
Declaration
public override void OnFocusExit(FocusEventData eventData)
Parameters
Type |
Name |
Description |
FocusEventData |
eventData |
|
Declaration
public void OnPointerClicked(MixedRealityPointerEventData eventData)
Parameters
Type |
Name |
Description |
MixedRealityPointerEventData |
eventData |
|
The Input Event handlers receive Hand Ray events.
Declaration
public void OnPointerDown(MixedRealityPointerEventData eventData)
Parameters
Type |
Name |
Description |
MixedRealityPointerEventData |
eventData |
|
Declaration
public void OnPointerDragged(MixedRealityPointerEventData eventData)
Parameters
Type |
Name |
Description |
MixedRealityPointerEventData |
eventData |
|
Declaration
public void OnPointerUp(MixedRealityPointerEventData eventData)
Parameters
Type |
Name |
Description |
MixedRealityPointerEventData |
eventData |
|
Declaration
public void OnSourceDetected(SourceStateEventData eventData)
Parameters
Type |
Name |
Description |
SourceStateEventData |
eventData |
|
Declaration
public void OnSourceLost(SourceStateEventData eventData)
Parameters
Type |
Name |
Description |
SourceStateEventData |
eventData |
|
Declaration
public void OnTouchCompleted(HandTrackingInputEventData eventData)
Parameters
Type |
Name |
Description |
HandTrackingInputEventData |
eventData |
|
In order to receive Touch Events from the IMixedRealityTouchHandler
remember to add a NearInteractionTouchable script to the object that has this script.
Declaration
public void OnTouchStarted(HandTrackingInputEventData eventData)
Parameters
Type |
Name |
Description |
HandTrackingInputEventData |
eventData |
|
Declaration
public void OnTouchUpdated(HandTrackingInputEventData eventData)
Parameters
Type |
Name |
Description |
HandTrackingInputEventData |
eventData |
|
This function sets the pan and zoom back to their starting settings.
Declaration
Implements
IMixedRealityTouchHandler
IMixedRealityPointerHandler
IMixedRealitySourceStateHandler