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
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
- Motion Vector texture reports incorrect Mesh data when Mesh is coming from off-screen
Add comment