gkngkc / UnityStandaloneFileBrowser

A native file browser for unity standalone platforms
MIT License
2.01k stars 317 forks source link

IL2CPP does not support marshaling delegates that point to instance methods to native code #139

Open Graylington opened 3 months ago

Graylington commented 3 months ago

After converting my Unity project to IL2CPP, I receive the following error when trying to load a file

NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: System.Windows.Forms.CommonDialog::OwnerWndProc at System.Windows.Forms.CommonDialog.ShowDialog (System.Windows.Forms.IWin32Window owner) [0x00000] in <00000000000000000000000000000000>:0 at SFB.StandaloneFileBrowserWindows.OpenFilePanel (System.String HOMKPMAEFCI, System.String DKDBCAEHMJI, SFB.ExtensionFilter[] FDMFDONNFPK, System.Boolean BGHPAMDHIGC) [0x00000] in <00000000000000000000000000000000>:0 at SFB.StandaloneFileBrowser.OpenFilePanel (System.String HOMKPMAEFCI, System.String DKDBCAEHMJI, SFB.ExtensionFilter[] FDMFDONNFPK, System.Boolean BGHPAMDHIGC) [0x00000] in <00000000000000000000000000000000>:0