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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
Add comment