Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Unity Build with OpenXR enabled fails

Discussion in 'Editor & General Support' started by JulianJarecki-flyingshapes, Mar 8, 2024.

  1. JulianJarecki-flyingshapes


    Nov 30, 2022
    Related SO post

    Our Project is build on linux with 2021.2.7f1 for
    Code (CSharp):
    1. target = BuildTarget.StandaloneWindows64

    We switched the project to OpenXR recently (com.unity.xr.openxr).
    Now in a clean build from script
    Code (CSharp):
    1. BuildPipeline.BuildPlayer
    Code (CSharp):
    1. target = BuildTarget.StandaloneWindows64

    OpenXR Project Validation fails with

    The only standalone targets supported are Windows x64 and OSX with OpenXR.
    Other architectures and operating systems are not supported at this time.​

    builds with old cache (Library) still run through and appear to be working fine.
    However from time to time we need to be able to perform clean builds.

    Since the builds with an old cache are working, of course I cannot be sure but this appears to be a bug?
    How Can I approach this problem - Is there any way to turn the OpenXR validation off via script?
    Or is this a bigger issue than I'm thinking?