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

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

    Show / Hide Table of Contents

    Interface IMixedRealityGazeProvider

    Implements the Gaze Provider for an Input Source.

    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IMixedRealityGazeProvider

    Properties

    Enabled

    Enable or disable the Component attached to the GameObjectReference

    Declaration
    bool Enabled { get; set; }
    Property Value
    Type Description
    Boolean

    GameObjectReference

    Get the GameObject reference for this Gaze Provider.

    Declaration
    GameObject GameObjectReference { get; }
    Property Value
    Type Description
    GameObject

    GazeCursor

    The Gaze Cursor for the provider.

    Declaration
    IMixedRealityCursor GazeCursor { get; }
    Property Value
    Type Description
    IMixedRealityCursor

    GazeCursorPrefab

    The prefab to be instantiated as the gaze cursor.

    Declaration
    GameObject GazeCursorPrefab { set; }
    Property Value
    Type Description
    GameObject

    GazeDirection

    Normal of the gaze.

    Declaration
    Vector3 GazeDirection { get; }
    Property Value
    Type Description
    Vector3

    GazeInputSource

    The Gaze Input Source for the provider.

    Declaration
    IMixedRealityInputSource GazeInputSource { get; }
    Property Value
    Type Description
    IMixedRealityInputSource

    GazeOrigin

    Origin of the gaze.

    Declaration
    Vector3 GazeOrigin { get; }
    Property Value
    Type Description
    Vector3

    GazePointer

    The Gaze Pointer for the provider.

    Declaration
    IMixedRealityPointer GazePointer { get; }
    Property Value
    Type Description
    IMixedRealityPointer

    GazeTarget

    The game object that is currently being gazed at, if any.

    Declaration
    GameObject GazeTarget { get; }
    Property Value
    Type Description
    GameObject

    HeadMovementDirection

    The current head movement direction.

    Declaration
    Vector3 HeadMovementDirection { get; }
    Property Value
    Type Description
    Vector3

    HeadVelocity

    The current head velocity.

    Declaration
    Vector3 HeadVelocity { get; }
    Property Value
    Type Description
    Vector3

    HitInfo

    HitInfo property gives access to information at the object being gazed at, if any.

    Declaration
    MixedRealityRaycastHit HitInfo { get; }
    Property Value
    Type Description
    MixedRealityRaycastHit

    HitNormal

    Normal of the point at which the gaze manager hit an object. If no object is currently being hit, this will return the previous normal.

    Declaration
    Vector3 HitNormal { get; }
    Property Value
    Type Description
    Vector3

    HitPosition

    Position at which the gaze manager hit an object. If no object is currently being hit, this will use the last hit distance.

    Declaration
    Vector3 HitPosition { get; }
    Property Value
    Type Description
    Vector3

    Methods

    UpdateGazeInfoFromHit(MixedRealityRaycastHit)

    Notifies this gaze provider of its new hit details.

    Declaration
    void UpdateGazeInfoFromHit(MixedRealityRaycastHit raycastHit)
    Parameters
    Type Name Description
    MixedRealityRaycastHit raycastHit
    Remarks

    For components that care where the user's looking, we need to separately update the gaze info even if gaze isn't used for focus.

    Back to top Generated by DocFX