Search Issue Tracker
By Design
Votes
0
Found in
5.5.0f3
Issue ID
856779
Regression
No
[IL2CPP] [iOS] [Xcode] Can't marshal a struct containing a field which is an array of blittable structs
Reproduction Steps:
1. Open "BugRepro" project
2. Build to iOS
3. Open Xcode project
4. Open "Unity-iPhone/Classes/Unity/Native/Bulk_Assembly-CSharp_0.cpp"
5. Search for "MarshalingTest_ThisDoesntWork"
6 Notice that "MarshalingTest_ThisDoesntWork" method implementation is incorrect
IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'data' of type 'TestStructArrayWrapper'."));
Expected behaviour: Method should include a proper function call.
Actual result: Method only throws an exception.
Reproduced on versions: Unity 5.5.2f1, 5.5.4f1, 5.6.1p3, 2017.1.0b9, 2017.2.0a3
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- TutorialManager Warnings are thrown when creating Test Track or LEGO Templates
- Incorrect ScrollToItem behavior when called on a deattached ListView
- Zooming in/out in Scene View window on the display the zoom takes place in does not work
- Changing Game View resolution when there are 2 Game View Windows on 2 different displays makes the view stretched
- Maximising Game view window on one display makes black bars appear on another display
Add comment