Search Issue Tracker
Fixed
Fixed in 1.9.1
Votes
0
Found in [Package]
1.9.0
Issue ID
OXRB-263
Regression
Yes
"The type 'AnalyticsResult' is defined in an assembly that is not referenced" error is thrown when opening a specific project with OpenXR Package installed
Reproduction steps:
1. Open the attached “ASDQWE” project
2. Observe the Console Window
Expected result: No error is thrown
Actual result: “error CS0012: The type 'AnalyticsResult' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine.UnityAnalyticsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.” error is thrown
Reproducible with: 1.8.2 (2021.3.31f1, 2022.3.10f1, 2023.1.0a13)
Not reproducible with: 1.7.0 (2021.3.29f1, 2022.3.2f1, 2023.1.1f1, 2023.2.0a20), 1.8.1 (2021.3.29f1, 2022.3.2f1, 2023.1.1f1, 2023.2.0a20), 1.8.2 (2023.1.0a20, 2023.1.17f1)
Could not test with: 1.8.2 (2023.1.0a14 - 2023.1.0a19 (Two “error CS0117” errors and one “error CS0103” error), 2023.2.0b14, 2023.3.0a10 (Multiple "com.unity.xr.openxr" package compilation errors))
Reproducible on: Intel macOS 13.5
Not reproducible on: No other environment tested
Comments (2)
-
EntaltoVeron
Dec 12, 2023 10:21
I've seen that it only happens when the target platform is PS5, it doesn't happen when the target platform is Windows or Android. I'm using Windows 11, if that may be relevant.
-
EntaltoVeron
Dec 12, 2023 09:30
Hello, I'm using Unity 2022.3.15f1 and OpenXR Plugin 1.9.1, and I still get that error:
error CS0012: The type 'AnalyticsResult' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine.UnityAnalyticsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Are there any solutions for this?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture is not applied on a Custom Render Texture when a Cubemap is selected as the texture
- 2D light leaks through ShadowCaster2D when ShadowCaster2D components are disabled then re enabled at runtime in Player builds
- Unity Hub redirects to The Unity Roadmap when navigating to “Send Feedback” option
- UI Toolkit throws warning and fails to clear references when fields are not typed as UnityEngine.Object
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
Resolution Note (fix version 1.9.1):
Fixed the issue. It will be available in the next OpenXR release.