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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note (fix version 1.9.1):
Fixed the issue. It will be available in the next OpenXR release.