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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment