Editar

Compartilhar via


ScrollRectTransf 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 ScrollRectTransf : Microsoft::MixedReality::Toolkit::Examples::Demos::EyeTracking::PanZoomBaseRectTransf
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/ScrollRectTransf")]
public class ScrollRectTransf : Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking.PanZoomBaseRectTransf
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/ScrollRectTransf")>]
type ScrollRectTransf = class
    inherit PanZoomBaseRectTransf
Public Class ScrollRectTransf
Inherits PanZoomBaseRectTransf
Inheritance
UnityEngine.MonoBehaviour
ScrollRectTransf
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

ScrollRectTransf()

Fields

cursorPos (Inherited from PanZoomBase)
customStartPos
dynaZoomInvert (Inherited from PanZoomBase)
limitPanning (Inherited from PanZoomBase)
myEyeTarget (Inherited from PanZoomBase)
offset (Inherited from PanZoomBase)
offsetRate_Pan (Inherited from PanZoomBase)
offsetRate_Zoom (Inherited from PanZoomBase)
originalOffset (Inherited from PanZoomBase)
originalPivot (Inherited from PanZoomBase)
originalRatio (Inherited from PanZoomBase)
originalScale (Inherited from PanZoomBase)
scale (Inherited from PanZoomBase)
zoomDir (Inherited from PanZoomBase)
zoomSpeed (Inherited from PanZoomBase)

Properties

EyeSaccadeProvider (Inherited from PanZoomBase)
MyCollider

Returns the collider of this GameObject.

(Inherited from PanZoomBase)

Methods

AutoPan() (Inherited from PanZoomBase)
ComputePanSpeed(Single, Single, Single) (Inherited from PanZoomBaseRectTransf)
DisableHandZoom() (Inherited from PanZoomBase)
EnableHandZoom() (Inherited from PanZoomBase)
IncrementNormFixator() (Inherited from PanZoomBase)
Initialize() (Inherited from PanZoomBaseRectTransf)
LimitScaling(Vector2) (Inherited from PanZoomBase)
PanHorizontally(Single)

Scroll sideways.

(Inherited from PanZoomBase)
PanVertically(Single)

Scroll from top to bottom

(Inherited from PanZoomBase)
ResetNormFixator() (Inherited from PanZoomBase)
Start()
StartFocusing() (Inherited from PanZoomBase)
StopFocusing() (Inherited from PanZoomBase)
Update()
UpdateCursorPosInHitBox()

Determine the position of the cursor within the hitbox.

(Inherited from PanZoomBaseRectTransf)
UpdatePanZoom() (Inherited from PanZoomBaseRectTransf)
ZoomDir(Boolean) (Inherited from PanZoomBaseRectTransf)
ZoomIn_Timed() (Inherited from PanZoomBase)
ZoomIn() (Inherited from PanZoomBaseRectTransf)
ZoomInStart() (Inherited from PanZoomBase)
ZoomOut_Timed() (Inherited from PanZoomBase)
ZoomOut() (Inherited from PanZoomBaseRectTransf)
ZoomOutStart() (Inherited from PanZoomBase)
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.

(Inherited from PanZoomBase)

Explicit Interface Implementations

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

Applies to