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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (fix version 1.9.1):
Fixed the issue. It will be available in the next OpenXR release.