PanZoomBase Class
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.
C++
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 Unity
Engine. Event Systems. IEvent System Handler
cursor |
|
dyna |
|
limit |
|
my |
|
offset | |
offset |
|
offset |
|
original |
|
original |
|
original |
|
original |
|
scale | |
zoom |
|
zoom |
Eye |
|
My |
Returns the collider of this GameObject. |
Auto |
|
Compute |
|
Disable |
|
Enable |
|
Increment |
|
Initialize() | |
Limit |
|
Pan |
Scroll sideways. |
Pan |
Scroll from top to bottom |
Reset |
|
Start() | |
Start |
|
Stop |
|
Update() | |
Update |
|
Update |
|
Zoom |
|
Zoom |
|
Zoom |
|
Zoom |
|
Zoom |
|
Zoom |
|
Zoom |
|
Zoom |
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. |
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |