docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XrEyeVisibility

    Specifies which eye to display a composition layer to, as defined by the OpenXR specification.

    Inheritance
    object
    XrEyeVisibility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public static class XrEyeVisibility

    Fields

    Both

    The layer is visible to both eyes.

    Declaration
    public const uint Both = 0
    Field Value
    Type Description
    uint

    Left

    The layer is visible to the left eye only.

    Declaration
    public const uint Left = 1
    Field Value
    Type Description
    uint

    Right

    The layer is visible to the right eye only.

    Declaration
    public const uint Right = 2
    Field Value
    Type Description
    uint
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)