Search Issue Tracker

Feature Request

Votes

1

Found in [Package]

4.4.0

Issue ID

XRMB-54

Regression

No

Unable to assign and remove OpenXR Loader when using XRPackageMetadataStore

Package: OpenXR Plugin

-

Reproduction steps:

1. Open user attached project "My project (3).zip"
2. Open Edit > Project Settings > XR Plug-in Management > Android
3. Click on Switch XR Loader > UnityMockHMD
4. Observe the XR Plug-in Management window
5. Click on Switch XR Loader > OpenXR
6. Observe the XR Plug-in Management window

Expected result: UnityMockHMD is removed and OpenXR is selected on the XR Plug-in Management window
Actual result: UnityMockHMD is removed and OpenXR is not selected on the XR Plug-in Management window

Reproduced with: 1.7.0 (2021.3.27f1, 2022.3.2f1, 2023.1.0f1, 2023.2.0a19), 1.8.0 (2023.2.0a19)
Could not test with: 1.6.0 (2023.2.0a6) (due to errors)

Reproducible on: Windows 10

Notes:

* Android Support is required to test the project
* The issue reproduces Standalone settings as well
* “Importer(NativeFormatImporter) generated inconsistent result for asset” warning message when switching to “UnityMockHMD” when testing 2023.1.0f1 Unity version

  1. Resolution Note:

    Converting this into a feature request.

Comments (1)

  1. LucasSupportSquare

    Nov 23, 2023 10:38

    I've been looking into this issue and it very much seems to be a UI related bug.

    The OpenXR loader has a custom loader ui, and in the DrawElementCallback method of the XRLoaderUI class and if statement is present which checks for this.
    If this is true, the 'toggled' property of the LoaderInformation is set to the value of the 'IsLoaderEnabled' property of the customLoaderUI. I don't know why this happens, but for OpenXR this property results to false.
    All of this causes the ui toggle to toggle off and remove the OpenXR loader again from the XR settings one frame later. (Not visible in editor but if you log the active loader you can see it).

    WORKAROUND:
    Close the XR settings window before applying your changes from code.

    Tested on:
    Unity 2021.2.13 & 2021.3.16
    XRPM: 4.2.0, 4.2.1, 4.4.0
    OpenXr Plugin: 1.5.3 up to 1.9.0

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.