Bearbeiten

Freigeben über


HandInteractionPanZoom Class

Definition

public ref class HandInteractionPanZoom : Microsoft::MixedReality::Toolkit::Input::BaseFocusHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealitySourceStateHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityTouchHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/HandInteractionPanZoom")]
public class HandInteractionPanZoom : Microsoft.MixedReality.Toolkit.Input.BaseFocusHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityTouchHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/HandInteractionPanZoom")>]
type HandInteractionPanZoom = class
    inherit BaseFocusHandler
    interface IMixedRealityTouchHandler
    interface IEventSystemHandler
    interface IMixedRealityPointerHandler
    interface IMixedRealitySourceStateHandler
Public Class HandInteractionPanZoom
Inherits BaseFocusHandler
Implements IEventSystemHandler, IMixedRealityPointerHandler, IMixedRealitySourceStateHandler, IMixedRealityTouchHandler
Inheritance
UnityEngine.MonoBehaviour
HandInteractionPanZoom
Attributes
UnityEngine.AddComponentMenuAttribute
Implements

Constructors

HandInteractionPanZoom()

Fields

PanStarted
PanStopped
PanUpdated

Properties

CurrentPanDelta

Returns the current pan delta (pan value - previous pan value) in UV coordinates (0 being no pan, 1 being pan of the entire slate)

CurrentScale

Current scale value. 1 is the original 100%.

Enabled

This Property sets and gets whether a the pan/zoom behavior is active.

FocusEnabled

Is focus enabled for this Component?

(Inherited from BaseFocusHandler)
Focusers

The list of IMixedRealityPointers that are currently focused on this GameObject

(Inherited from BaseFocusHandler)
HasFocus

Does this object currently have focus by any IMixedRealityPointer?

(Inherited from BaseFocusHandler)

Methods

OnBeforeFocusChange(FocusEventData)

Focus event that is raised before the focus is actually changed.

(Inherited from BaseFocusHandler)
OnFocusChanged(FocusEventData)

Focus event that is raised when the focused object is changed.

(Inherited from BaseFocusHandler)
OnFocusEnter(FocusEventData)

The Focus Enter event is raised on this GameObject whenever a IMixedRealityPointer's focus enters this GameObject's Collider.

OnFocusExit(FocusEventData)

The Focus Exit event is raised on this GameObject whenever a IMixedRealityPointer's focus leaves this GameObject's Collider.

OnPointerClicked(MixedRealityPointerEventData)
OnPointerDown(MixedRealityPointerEventData)

The Input Event handlers receive Hand Ray events.

OnPointerDragged(MixedRealityPointerEventData)
OnPointerUp(MixedRealityPointerEventData)
OnSourceDetected(SourceStateEventData)
OnSourceLost(SourceStateEventData)
OnTouchCompleted(HandTrackingInputEventData)
OnTouchStarted(HandTrackingInputEventData)

In order to receive Touch Events from the IMixedRealityTouchHandler remember to add a NearInteractionTouchable script to the object that has this script.

OnTouchUpdated(HandTrackingInputEventData)
Reset()

This function sets the pan and zoom back to their starting settings.

Applies to