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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Add comment