Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.1.0a4
2018.1.5f1
Issue ID
1056184
Regression
Yes
ReflectionTypeLoadException breaks Editor GUI when using Explicit StructLayout in .NET 4.x
How to reproduce:
1. Open the attached project
2. Open 'TestStruct.cs' script from the Project window
3. Make some insignificant changes to the script
4. Return to the Editor
Expected result: After recompile, there are no Console errors caused and Editor GUI does not break.
Actual result: After recompile, there are ReflectionTypeLoadException and ArgumentException errors in the Console and Editor GUI starts to break after some time (or after forcing the script to recompile again).
Reproducible with - 2018.1.0a4, 2018.1.7f1, 2018.2.0b11, 2018.3.0a4
Not reproducible with - 2017.1.4p2, 2017.2.3p1, 2017.4.6f1, 2018.1.0a3
Notes:
- The reproduction steps that break Editor GUI are not consistent, it usually involves moving around GUI elements in the Editor window. However, ReflectionTypeLoadException errors are always reproducible.
- The Console errors are also reproducible when building the project and running the build.
Fixed in 2018.3.0a8
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Label” name in Sprite Library Editor window lacks character limit causing long names go under the Object Field
- Preview image (screenshot) is not available after capturing snapshot in Memory Profiler
- Crash on UNITY_FT_Stream_ReadAt when changing TMPro properties after unloading an AssetBundle
- Particles spawn at the same position when using raw byte address buffer in VFX Graph
- Decal Shader Graph - Custom vertex interpolators are always 0
Add comment