Search Issue Tracker
Fixed in 2019.1.X
Votes
0
Found in
2018.3.0a1
2018.3.0b1
2019.1.0a1
Issue ID
1081704
Regression
No
TypeLoadException is thrown when selecting script
How to reproduce:
1. Open the user-submitted project ("Matsueri.zip")
2. Select the Unit script in the Project Browser and observe errors in the Console
3. Create an empty game object and attach the "Unit" script to it
4. See greyed out inspector and warning message
Expected result: No TypeLoadException is thrown
Actual result: TypeLoadException is thrown
Reproduced in: 2019.1.0a10, 2018.3.0b11
Unable to test: 2018.2.17f1, 2018.1.9f2, 2017.4.16f1 (Couldn't test due to multiple project errors)
Note: Upon opening the project or entering Play Mode ReflectionTypeLoadExceptions are thrown - see case 1106606
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
- NullReferenceException is thrown when assigning PanelSettings asset to a UIDocument dynamically at runtime
- Crash on GfxDeviceD3D12Base::DrawBuffersCommon when disabling "Allow FSR2" parameter while in Play Mode with Direct3D12 set as graphics API
- Crash on vkGetInstanceProcAddr when setting graphics API to "Vulkan" on Fantasy Kingdom learning project
- Overlay Camera "clear depth" not working on Vulkan+Pixel8
- Shadows from Shadow Caster 2D using 2D Colliders show incorrectly when tiles are removed at runtime
Resolution Note (fix version 2019.1):
The problem is that the asmdef is named System. This clashes with the System assembly from mscorlib. We now throw an exception if a predefined name is being used to avoid this issue in the future.