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

IL2CPP

-

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.