docs.unity3d.com
    Show / Hide Table of Contents

    Class EyeTrackingUsages

    Tags that can be used with UnityEngine.XR.InputDevice.TryGetFeatureValue(UnityEngine.XR.InputFeatureUsage{System.Boolean},System.Boolean@) to get eye tracking related input features. See CommonUsages for additional usages.

    Inheritance
    Object
    EyeTrackingUsages
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.OpenXR.Features.Interactions
    Syntax
    public static class EyeTrackingUsages

    Fields

    gazePosition

    The origin position for the gaze. The gaze represents where a user is looking, and gazePosition represents the starting location, close to the eyes, from which to project a gaze ray from.

    Declaration
    public static InputFeatureUsage<Vector3> gazePosition
    Field Value
    Type Description
    InputFeatureUsage<Vector3>

    gazeRotation

    The orientation of the gaze, such that the direction of the gaze is the same as forward * gazeRotation. Use with gazePosition to create a gaze ray.

    Declaration
    public static InputFeatureUsage<Quaternion> gazeRotation
    Field Value
    Type Description
    InputFeatureUsage<Quaternion>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023