編輯

共用方式為


PanZoomBase Class

Definition

This script allows to zoom into and pan the texture of a GameObject. It also allows for scrolling by restricting panning to one direction.

public ref class PanZoomBase abstract : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityFocusHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityHandJointHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealitySourceStateHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.Input.EyeTrackingTarget))]
public abstract class PanZoomBase : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityFocusHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityHandJointHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.Input.EyeTrackingTarget))>]
type PanZoomBase = class
    inherit MonoBehaviour
    interface IMixedRealityPointerHandler
    interface IEventSystemHandler
    interface IMixedRealityFocusHandler
    interface IMixedRealitySourceStateHandler
    interface IMixedRealityHandJointHandler
Public MustInherit Class PanZoomBase
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityFocusHandler, IMixedRealityHandJointHandler, IMixedRealityPointerHandler, IMixedRealitySourceStateHandler
Inheritance
UnityEngine.MonoBehaviour
PanZoomBase
Derived
Attributes
UnityEngine.RequireComponentAttribute
Implements

Constructors

PanZoomBase()

Fields

cursorPos
dynaZoomInvert
limitPanning
myEyeTarget
offset
offsetRate_Pan
offsetRate_Zoom
originalOffset
originalPivot
originalRatio
originalScale
scale
zoomDir
zoomSpeed

Properties

EyeSaccadeProvider
MyCollider

Returns the collider of this GameObject.

Methods

AutoPan()
ComputePanSpeed(Single, Single, Single)
DisableHandZoom()
EnableHandZoom()
IncrementNormFixator()
Initialize()
LimitScaling(Vector2)
PanHorizontally(Single)

Scroll sideways.

PanVertically(Single)

Scroll from top to bottom

ResetNormFixator()
Start()
StartFocusing()
StopFocusing()
Update()
UpdateCursorPosInHitBox()
UpdatePanZoom()
ZoomDir(Boolean)
ZoomIn_Timed()
ZoomIn()
ZoomInStart()
ZoomOut_Timed()
ZoomOut()
ZoomOutStart()
ZoomStop()

No matter if the user is still looking at the currently active pan-zoom panel, once the "zoom stop" action has been triggered, reset the active target.

Explicit Interface Implementations

IMixedRealityFocusHandler.OnFocusEnter(FocusEventData)
IMixedRealityFocusHandler.OnFocusExit(FocusEventData)
IMixedRealityHandJointHandler.OnHandJointsUpdated(InputEventData<IDictionary<TrackedHandJoint,MixedRealityPose>>)
IMixedRealityPointerHandler.OnPointerClicked(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDown(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDragged(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerUp(MixedRealityPointerEventData)
IMixedRealitySourceStateHandler.OnSourceDetected(SourceStateEventData)
IMixedRealitySourceStateHandler.OnSourceLost(SourceStateEventData)

Applies to