Search Issue Tracker
Fixed in 2.0.7-pre.7
Votes
0
Found in [Package]
2.0.7-pre.6
Issue ID
1367201
Regression
No
WebGL build fails when Analytics package is included
Reproduction steps:
1. Open the attached project ("1367201_22.1.0a13.zip")
2. Switch Platform to WebGL
3. Build and Run the project
Expected result: Project builds and runs successfully
Actual result: Build fails with errors:
Library/PackageCache/com.unity.services.analytics@2.0.7-pre.6/Runtime/DataPrivacy/DataPrivacyButton.cs(11,10): error CS0246: The type or namespace name 'DllImportAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.services.analytics@2.0.7-pre.6/Runtime/DataPrivacy/DataPrivacyButton.cs(11,10): error CS0246: The type or namespace name 'DllImport' could not be found (are you missing a using directive or an assembly reference?)
Reproducible with: 2.0.7-pre.6 (2019.4.32f1, 2020.3.22f1, 2021.2.2f1, 2022.1.0a13)
Not reproducible with: 2.0.7-pre.7 (2019.4.32f1, 2020.3.22f1, 2021.2.2f1, 2022.1.0a13)
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
- [macOS] Project fails to load when Virtual Artifacts are Corrupted
- Long scheduler times on main thread when using InstantiateAsync with a singular massive Prefab
- The project hangs upon opening it when importing the "discrete_rank2_vector_v2_0.onnx" file
- Opening the Look Dev hangs the Editor when the window is opened for the first time in the project or after deleting the Library folder
- Look Dev has blurry icons on 4k monitors
Resolution Note (fix version 2.0.7-pre.7):
Fixed in: 2.0.7-pre.7