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

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

    Show / Hide Table of Contents

    Class LinePointer

    A simple line pointer for drawing lines from the input source origin to the current pointer position.

    Inheritance
    Object
    InputSystemGlobalHandlerListener
    ControllerPoseSynchronizer
    BaseControllerPointer
    LinePointer
    CurvePointer
    ShellHandRayPointer
    Implements
    IMixedRealityControllerPoseSynchronizer
    IMixedRealitySourcePoseHandler
    IMixedRealitySourceStateHandler
    IMixedRealityInputHandler
    IMixedRealityBaseInputHandler
    IMixedRealityInputHandler<Single>
    IMixedRealityInputHandler<Vector2>
    IMixedRealityInputHandler<Vector3>
    IMixedRealityInputHandler<Quaternion>
    IMixedRealityInputHandler<MixedRealityPose>
    IEventSystemHandler
    IMixedRealityPointer
    IEqualityComparer
    Inherited Members
    BaseControllerPointer.DisableCursorOnStart
    BaseControllerPointer.raycastOrigin
    BaseControllerPointer.pointerAction
    BaseControllerPointer.IsSelectPressed
    BaseControllerPointer.HasSelectPressedOnce
    BaseControllerPointer.IsHoldPressed
    BaseControllerPointer.SetCursor(GameObject)
    BaseControllerPointer.Start()
    BaseControllerPointer.Controller
    BaseControllerPointer.PointerId
    BaseControllerPointer.PointerName
    BaseControllerPointer.InputSourceParent
    BaseControllerPointer.BaseCursor
    BaseControllerPointer.CursorModifier
    BaseControllerPointer.IsActive
    BaseControllerPointer.IsFocusLocked
    BaseControllerPointer.IsTargetPositionLockedOnFocusLock
    BaseControllerPointer.PointerExtent
    BaseControllerPointer.DefaultPointerExtent
    BaseControllerPointer.Rays
    BaseControllerPointer.PrioritizedLayerMasksOverride
    BaseControllerPointer.FocusTarget
    BaseControllerPointer.Result
    BaseControllerPointer.RayStabilizer
    BaseControllerPointer.SceneQueryType
    BaseControllerPointer.SphereCastRadius
    BaseControllerPointer.Position
    BaseControllerPointer.Rotation
    BaseControllerPointer.OnPreCurrentPointerTargetChange()
    BaseControllerPointer.Reset()
    BaseControllerPointer.Equals(Object)
    BaseControllerPointer.GetHashCode()
    BaseControllerPointer.OnSourceLost(SourceStateEventData)
    BaseControllerPointer.OnInputUp(InputEventData)
    BaseControllerPointer.OnInputDown(InputEventData)
    ControllerPoseSynchronizer.Handedness
    ControllerPoseSynchronizer.DestroyOnSourceLost
    ControllerPoseSynchronizer.IsTracked
    ControllerPoseSynchronizer.TrackingState
    ControllerPoseSynchronizer.UseSourcePoseData
    ControllerPoseSynchronizer.PoseAction
    ControllerPoseSynchronizer.RegisterHandlers()
    ControllerPoseSynchronizer.UnregisterHandlers()
    ControllerPoseSynchronizer.OnSourceDetected(SourceStateEventData)
    ControllerPoseSynchronizer.OnSourcePoseChanged(SourcePoseEventData<TrackingState>)
    ControllerPoseSynchronizer.OnSourcePoseChanged(SourcePoseEventData<Vector2>)
    ControllerPoseSynchronizer.OnSourcePoseChanged(SourcePoseEventData<Vector3>)
    ControllerPoseSynchronizer.OnSourcePoseChanged(SourcePoseEventData<Quaternion>)
    ControllerPoseSynchronizer.OnSourcePoseChanged(SourcePoseEventData<MixedRealityPose>)
    ControllerPoseSynchronizer.OnInputChanged(InputEventData<Single>)
    ControllerPoseSynchronizer.OnInputChanged(InputEventData<Vector2>)
    ControllerPoseSynchronizer.OnInputChanged(InputEventData<Vector3>)
    ControllerPoseSynchronizer.OnInputChanged(InputEventData<Quaternion>)
    ControllerPoseSynchronizer.OnInputChanged(InputEventData<MixedRealityPose>)
    InputSystemGlobalHandlerListener.EnsureInputSystemValid()
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public class LinePointer : BaseControllerPointer, IMixedRealityControllerPoseSynchronizer, IMixedRealitySourcePoseHandler, IMixedRealitySourceStateHandler, IMixedRealityInputHandler, IMixedRealityBaseInputHandler, IMixedRealityInputHandler<float>, IMixedRealityInputHandler<Vector2>, IMixedRealityInputHandler<Vector3>, IMixedRealityInputHandler<Quaternion>, IMixedRealityInputHandler<MixedRealityPose>, IEventSystemHandler, IMixedRealityPointer, IEqualityComparer

    Fields

    LineColorInvalid

    Declaration
    protected Gradient LineColorInvalid
    Field Value
    Type Description
    Gradient

    LineColorLockFocus

    Declaration
    protected Gradient LineColorLockFocus
    Field Value
    Type Description
    Gradient

    LineColorNoTarget

    Declaration
    protected Gradient LineColorNoTarget
    Field Value
    Type Description
    Gradient

    LineColorSelected

    Declaration
    protected Gradient LineColorSelected
    Field Value
    Type Description
    Gradient

    LineColorValid

    Declaration
    protected Gradient LineColorValid
    Field Value
    Type Description
    Gradient

    Properties

    IsInteractionEnabled

    Is the pointer active and have the conditions for the interaction been satisfied to enable the interaction?

    Declaration
    public override bool IsInteractionEnabled { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    BaseControllerPointer.IsInteractionEnabled

    LineBase

    The Line Data Provider driving this pointer.

    Declaration
    public BaseMixedRealityLineDataProvider LineBase { get; }
    Property Value
    Type Description
    BaseMixedRealityLineDataProvider

    LineRenderers

    The current line renderers that this pointer is utilizing.

    Declaration
    public BaseMixedRealityLineRenderer[] LineRenderers { get; }
    Property Value
    Type Description
    BaseMixedRealityLineRenderer[]
    Remarks

    If no line renderers are specified, this array will be auto-populated on startup.

    Methods

    OnDisable()

    Declaration
    protected override void OnDisable()
    Overrides
    BaseControllerPointer.OnDisable()

    OnEnable()

    Declaration
    protected override void OnEnable()
    Overrides
    BaseControllerPointer.OnEnable()

    OnPostSceneQuery()

    Called after performing the scene query.

    Declaration
    public override void OnPostSceneQuery()
    Overrides
    BaseControllerPointer.OnPostSceneQuery()

    OnPreSceneQuery()

    Called before performing the scene query.

    Declaration
    public override void OnPreSceneQuery()
    Overrides
    BaseControllerPointer.OnPreSceneQuery()

    PostUpdateLineRenderers()

    Declaration
    protected virtual void PostUpdateLineRenderers()

    PreUpdateLineRenderers()

    Declaration
    protected virtual void PreUpdateLineRenderers()

    SetLinePoints(Vector3, Vector3)

    Declaration
    protected void SetLinePoints(Vector3 startPoint, Vector3 endPoint)
    Parameters
    Type Name Description
    Vector3 startPoint
    Vector3 endPoint

    UpdateRays()

    Declaration
    protected virtual void UpdateRays()

    Implements

    IMixedRealityControllerPoseSynchronizer
    IMixedRealitySourcePoseHandler
    IMixedRealitySourceStateHandler
    IMixedRealityInputHandler
    IMixedRealityBaseInputHandler
    IMixedRealityInputHandler<T>
    IMixedRealityInputHandler<T>
    IMixedRealityInputHandler<T>
    IMixedRealityInputHandler<T>
    IMixedRealityInputHandler<T>
    IEventSystemHandler
    IMixedRealityPointer
    IEqualityComparer
    Back to top Generated by DocFX