PanZoomBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.MonoBehaviourPanZoomBase
- Derived
- Attributes
-
UnityEngine.RequireComponentAttribute
- Implements
-
IMixedRealityFocusHandler IMixedRealityHandJointHandler IMixedRealityPointerHandler IMixedRealitySourceStateHandler UnityEngine.EventSystems.IEventSystemHandler
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() | |
ZoomIn_Timed() | |
ZoomInStart() | |
ZoomOut() | |
ZoomOut_Timed() | |
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. |