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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment