Search Issue Tracker
Fixed in 5.3.7
Votes
0
Found in
5.4.0f3
Issue ID
820071
Regression
No
[IL2CPP] Generic class with struct inside dynamic-link library returns type (this.GetType()) "System.Object" instead of class
Reproduction steps:
1) Open project
2) Open and run "scene" scene
-- Press "Space" button and notice in console that data1, data2 and data3 are not null
3) Make sure that IL2CPP is selected
4) Build and run project on Android device
5) Touch screen and check adb logcat output
Expected result:
data1 (also data2 and data3) should not be null, as in Editor or when building with Mono2x.
Actual result:
data1 (also data2 and data3) are set to null because "GetType()" inside of struct returned System.Object instead of that class' type. (compare adb logcat output with editor's console output)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Highlighter.Highlight does not find window when using class name as window title
- Highlighter.Highlight highlights a different component when multiple components have the same property path
- Highlighter.Highlight does not find elements in an array or list when the array or list is collapsed
- [URP][NRP] RenderPass, BeginSubPass, and EndRenderPass errors are thrown when Native RenderPass is enabled
- D3D11 swapchain error pop-up appears and the Editor shuts down when Generating Lighting with Probe Volumes present
Add comment