Search Issue Tracker
Fixed in 2018.2.X
Votes
0
Found in
5.4.3f1
Issue ID
915869
Regression
No
[Android] [Mono] DllImport function doesn't receive passed parameters
Steps to reproduce:
1) Download attached project 'unity.zip' and open in Unity
2) In Player Settings, make sure that Scripting Backend is set to Mono2x
3) Build and Run 'BugScene' on a device
Expected result: DllImported function with Mono2x should receive passed parameters just like IL2CPP (check attached image 'IL2CPP.png')
Actual result: DllImported function with Mono2x doesn't receive passed parameters (check attached image 'Mono2x.png')
Reproduced with:
5.4.5p2, 5.5.3p4, 5.6.1p1, 2017.1.0b7, 2017.2.0a1
Devices under test:
Samsung SM G950F*, OS:7.0, CPU:arm64-v8a, GPU:Mali-G71, Build:samsung/dreamltexx/dreamlte:7.0/NRD90M/G950FXXU1AQDG:user/release-keys
HUAWEI EVA L19*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T880, Build:HUAWEI/EVA-L19/HWEVA:6.0/HUAWEIEVA-L19/C432B182:user/release-keys
Note: built project with IL2CPP receives passed parameters on both tested devices
Mono crashes on iOS. Tested with 5.4, 5.5, 5.6.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- NullReferenceExceptions are being thrown when saving a ScriptableObject with an array of a type with a CustomPropertyDrawer that uses TrackPropertyValue
- Applied velocity is inconsistent when using Rigidbody AddForce() with ForceMode.VelocityChange
- Crash on AudioUtil_CUSTOM_HasAudioCallback when exiting Play Mode while the Inspector is displaying a GameObject with an empty script attached
- Scroll offset is framerate-dependent when scrolling with velocity in the Device Simulator
- "Object.FindObjectsOfType<T>() is obsolete" warning is thrown when using "Transitions Plus" asset
Add comment