gkngkc / UnityStandaloneFileBrowser

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

- Added support for AppleSilicon and upgraded project to Unity 2021.1.12f1 #116

Open tonidurans opened 2 years ago

tonidurans commented 2 years ago

I'm a long time user of this plugin and I've just faced some problems porting my apps to the new AppleSilicon architecture. This commit simply upgrades the project version to Unity 2021.1.12f1 and changes Xcode project settings to include arm64 in the macOs bundle.

meganeroppy commented 2 years ago

Hi. We are having a problem that we cannot open Finder with Application.Open([LOCAL_PATH]) on standalone build for AppleSilicon architecture, although It successfully works on Unity Editor. This issue might not be quite related to this plugin, but this is because it's possible to open file-select-dialog with it even on standalone build for AppleSilicon architecture, we wonder if there would be any clue to solve this.

Any advise or comment will be very appreciated.

Thanks.

tonidurans commented 2 years ago

Hi @meganeroppy,

I've tried Application.OpenURL("file://"+Application.dataPath); and it's working fine for me both in Editor and Build on M1 machine. Could it be a problem with the URL?

Regards

meganeroppy commented 2 years ago

Hi @tonidurans

Thank you for replying. Now we can nicely open Finder with OpenURL() for build on M1 even we actually didn't change anything. So it is kind of fuzzy, but anyhow it got solved. If we face the same issue, we might post it here again.

Thank you so much.

Mylab6 commented 1 year ago

Thank you for fixing this, the package works fine on Mac, tested with Unity 2021 LTS