Search Issue Tracker
Fixed
Fixed in 2021.3.29f1, 2022.3.5f1, 2023.1.5f1, 2023.2.0a19
Votes
0
Found in
2020.3.47f1
2021.3.24f1
2022.2.17f1
2023.1.0b14
2023.2.0a13
Issue ID
UUM-34854
Regression
No
"TypeLoadException" is thrown when using recursive types in MonoBehaviour inherited classes
Reproduction steps:
1. Open the attached "IN-39414.zip" project
2. Open the "Assets/Scenes/SampleScene" Scene
3. Enter Play Mode
4. Observe the Console window
Expected result: No error is thrown
Actual result: "TypeLoadException" is thrown
Reproduced with: 2020.3.47f1, 2021.3.24f1, 2022.2.17f1, 2023.1.0b14, 2023.2.0a13
Reproduced on: Windows 10
Notes:
- Full error: "TypeLoadException: Recursive type definition detected .Node`1"
- The code in question can be found in the "Assets/Scripts/Test.cs" file
- Reproducible in Standalone builds but not reproducible in WebGL builds
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on GfxDeviceD3D12::AllocBottomLevelAccelerationStructure when using Raytracing
- The search icon in the "Searches" sections is blurry and inconsistent
- "RenderingCommandBuffer" error is thrown when switching to the tvOS platform
- Left side cog menu button is obstructed by the maximum Y value of the graph when editing a curve in the Particle System Curves
- "Property exceeds previous array size (64 vs 32)." warnings are thrown when switching from tvOS platform to a Standalone platform after restarting the Editor
Add comment