Search Issue Tracker
Fixed
Fixed in 2022.2.5f1, 2023.1.0a23
Votes
32
Found in
2022.1.0a1
2022.1.17f1
2022.2.0b8
2023.1.0a10
Issue ID
UUM-14403
Regression
Yes
IL2CPP build fails due to UnityEditor.dll usage in user code
How to reproduce:
# Open attached project
# In Build Settings window, Build for Windows IL2CPP
# Once test completes, examine Console window
Expected result: No error
Actual result: "UnityEditor.dll assembly is referenced by user code, but this is not allowed."
Reproducible with: 2022.1.0a1, 2022.1.17f1, 2022.2.0b8, 2023.1.0a10
Not reproducible with: 2020.3.39f1, 2021.3.10f1
Reproduced on: Windows 10, Windows 11, Ubuntu 18.04
Note: This issue does not reproduce with Mono scripting backend
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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note (fix version 2023.1.0a23):
Fixed in: 2023.1.0a23
Resolution Note (fix version 2022.2.5f1):
Fixed in 2022.2.5f1