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
- The Graph Debug Window can be right clicked through and the Node Workspace is manipulated instead
- [Linux] Top left corner of the screen is unresponsive when the Editor recompiles
- [Android] [Vulkan] Cubes stuck on the first few frames of rotation and application flickering when an Overlay Camera is added to the Camera Stack with MSAA enabled
- Profiling information icon does not update for Light Mode
- [Linux] Type to select functionality is missing for drop down menus
Add comment