Search Issue Tracker
By Design
Votes
0
Found in
2019.2
2019.2.10f1
2019.3
2020.1
Issue ID
1194814
Regression
No
[IL2CPP] GetOpenFileName returns an empty string in player build
To reproduce:
1) Open the attached project and scene
2) Make sure it is: a) Set to be "Development Build" b) Set to be IL2CPP
3) Build and run it
4) When a prompt shows up, select an image (there's a .png provided in Assets)
Actual: An empty string is printed out in the log
5) Close the player
6) Play in the editor (or change it to Mono and build and run again)
Expected: Location of the .png is printed out
Reproduced in 2018.4.0f1, 2018.4.12f1, 2019.2.0a1, 2020.1.0a11
Tested in Windows IL2CPP
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note:
The marshaling behavior of IL2CPP here matches .NET Framework. The file name in the structure returned from the Win32 API call should be used.