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
Comments (12)
-
ihgyug
Jan 15, 2023 18:44
Same on 2022.2.2f1
-
StudioEvil
Jan 02, 2023 11:26
Same here on 2022.2.1f1
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
- Prefab Override popup displays on wrong monitor when Inspector width is resized to minimum
- Scroll View is not moving by inertia after scrolling by click and dragging when Editor window is minimized and Canvas "Render Mode" is set to "World Space"
- "type mismatch error" occurs when the currentDirectionWS output of a Sample Water Surface node is connected to a float3 input
- URP Material Upgrade utility does not enable Alpha Clipping when material had Rendering Mode set to Cutout
- Particle System emission ignores the Sprite Atlas when using a Material that has the "Include in Build" setting unchecked
Resolution Note (fix version 2023.1.0a23):
Fixed in: 2023.1.0a23
Resolution Note (fix version 2022.2.5f1):
Fixed in 2022.2.5f1