gkngkc / UnityStandaloneFileBrowser

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

It doesnt allow me to upload multiple files? #55

Open Jazzykhan opened 5 years ago

Jazzykhan commented 5 years ago

hi, i want to allow me to upload multiple files. I have tried doing the bool to true but it still accepts only one image. thanks

ersocio commented 4 years ago

It depends to build settings platform you are using. With PC, Mac & Linux standalone it works but if you use iOS or Android is not working. I hope they fix it.

caochao commented 4 years ago

@Jazzykhan you can modify codes like this in StandaloneFileBrowser.cs file.

if UNITY_STANDALONE_OSX

        _platformWrapper = new StandaloneFileBrowserMac();

elif UNITY_STANDALONE_WIN

        _platformWrapper = new StandaloneFileBrowserWindows();

elif UNITY_STANDALONE_LINUX

        _platformWrapper = new StandaloneFileBrowserLinux();

elif UNITY_EDITOR

        if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.iOS)
        {
            _platformWrapper = new StandaloneFileBrowserMac();    
        }
        else
        {
            _platformWrapper = new StandaloneFileBrowserEditor();
        }

endif

and modify StandaloneFileBrowserMac.cs as below:

if UNITY_STANDALONE_OSX || UNITY_EDITOR

EthanSK commented 4 years ago

I still have this problem (on macos)