Search Issue Tracker
By Design
Votes
0
Found in
2020.2.6f1
2020.3
Issue ID
1318036
Regression
No
ILPostProcessor causes DLL's that link to UnityEngine.UI.dll to fail and be unloaded on import
How to reproduce:
1. Open attached project "1TestMirror.zip"
2. Right click the TestScript in the project
3. Select Reimport
Expected result: No errors and TestLib.dll is not unloaded
Actual result: Errors appear in the console and TestLib.dll be unloaded from the project
Reproducible with - 2020.3.9f1
Could not test (ILPostProcessor errors) - 2018.4, 2019.4, 2021.1, 2021.2
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
Since 2019.2 UnityEngine UI module is shipped as a package built for .net standard. The built-in DLL we shipped before was built for .net framework 4.0. That means that they use a different base class library and are not binary compatible.
Any library built referencing the old dll must be rebuild referencing the new one or it will fail to run properly.
It has nothing to do with IL PostProcessing as removing all packages doing IL Post Processing still trigger the error.