docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VisionOS

    Runtime scripting API for VisionOS.

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

    Methods

    Name Description
    IsImmersiveSpaceReady()

    Determine whether the immersive space for the app is ready. Return true in the Editor for testing purposes.

    IsSimulator()

    Determine whether the app is running in the visionOS simulator. Treat the Editor targeting visionOS as running in simulator.

    SetDepthRange(float, float)

    Set the range of values used for depth sorting. These values should match Camera.nearClipPlane and Camera.farClipPlane

    In This Article
    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