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
- Animator window has a dropdown button that throws “MissingReferenceException” error on a new project when the previous project had a GameObject with an animation
- Animator State name overflows outside the visual box when the State has a long name
- UI Document file remains marked as Dirty after Undoing made changes
- Switching between UI Documents with different Canvas sizes marks the UXML file as dirty
- m_Modifications block serializes incorrectly when replacing source prefabs
Resolution Note (fix version 1.9.1):
Fixed the issue. It will be available in the next OpenXR release.