日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class PanZoomBaseTexture

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

    Inheritance
    Object
    PanZoomBase
    PanZoomBaseTexture
    PanZoomTexture
    ScrollTexture
    Implements
    IMixedRealityPointerHandler
    IMixedRealityFocusHandler
    IMixedRealitySourceStateHandler
    IMixedRealityHandJointHandler
    Inherited Members
    PanZoomBase.cursorPos
    PanZoomBase.scale
    PanZoomBase.offset
    PanZoomBase.offsetRate_Zoom
    PanZoomBase.offsetRate_Pan
    PanZoomBase.limitPanning
    PanZoomBase.myEyeTarget
    PanZoomBase.zoomSpeed
    PanZoomBase.zoomDir
    PanZoomBase.dynaZoomInvert
    PanZoomBase.originalRatio
    PanZoomBase.originalPivot
    PanZoomBase.originalScale
    PanZoomBase.originalOffset
    PanZoomBase.EyeSaccadeProvider
    PanZoomBase.Start()
    PanZoomBase.AutoPan()
    PanZoomBase.PanHorizontally(Single)
    PanZoomBase.PanVertically(Single)
    PanZoomBase.EnableHandZoom()
    PanZoomBase.DisableHandZoom()
    PanZoomBase.ZoomInStart()
    PanZoomBase.ZoomOutStart()
    PanZoomBase.ZoomStop()
    PanZoomBase.Update()
    PanZoomBase.ResetNormFixator()
    PanZoomBase.IncrementNormFixator()
    PanZoomBase.MyCollider
    PanZoomBase.LimitScaling(Vector2)
    PanZoomBase.ZoomIn_Timed()
    PanZoomBase.ZoomOut_Timed()
    PanZoomBase.StartFocusing()
    PanZoomBase.StopFocusing()
    Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking
    Assembly: cs.temp.dll.dll
    Syntax
    public class PanZoomBaseTexture : PanZoomBase, IMixedRealityPointerHandler, IMixedRealityFocusHandler, IMixedRealitySourceStateHandler, IMixedRealityHandJointHandler

    Fields

    textureRenderer

    Declaration
    protected Renderer textureRenderer
    Field Value
    Type Description
    Renderer

    Properties

    TextureShaderProperty

    Declaration
    public string TextureShaderProperty { get; set; }
    Property Value
    Type Description
    String

    Methods

    ComputePanSpeed(Single, Single, Single)

    Returns the pan speed.

    Declaration
    public override float ComputePanSpeed(float uvCursorPos, float maxSpeed, float minDistFromCenterForAutoPan)
    Parameters
    Type Name Description
    Single uvCursorPos
    Single maxSpeed
    Single minDistFromCenterForAutoPan
    Returns
    Type Description
    Single
    Overrides
    PanZoomBase.ComputePanSpeed(Single, Single, Single)

    Initialize()

    Declaration
    public override void Initialize()
    Overrides
    PanZoomBase.Initialize()

    Initialize(Single)

    Declaration
    public void Initialize(float newAspectRatio)
    Parameters
    Type Name Description
    Single newAspectRatio

    UpdateCursorPosInHitBox()

    Determine the position of the cursor within the texture in UV space.

    Declaration
    public override bool UpdateCursorPosInHitBox()
    Returns
    Type Description
    Boolean

    True if this GameObject is hit.

    Overrides
    PanZoomBase.UpdateCursorPosInHitBox()

    UpdatePanZoom()

    Declaration
    public override void UpdatePanZoom()
    Overrides
    PanZoomBase.UpdatePanZoom()

    ZoomDir(Boolean)

    Declaration
    public override int ZoomDir(bool zoomIn)
    Parameters
    Type Name Description
    Boolean zoomIn
    Returns
    Type Description
    Int32
    Overrides
    PanZoomBase.ZoomDir(Boolean)

    ZoomIn()

    Declaration
    public override void ZoomIn()
    Overrides
    PanZoomBase.ZoomIn()

    ZoomOut()

    Declaration
    public override void ZoomOut()
    Overrides
    PanZoomBase.ZoomOut()

    Implements

    IMixedRealityPointerHandler
    IMixedRealityFocusHandler
    IMixedRealitySourceStateHandler
    IMixedRealityHandJointHandler
    Back to top Generated by DocFX