UnityStandaloneFileBrowser icon indicating copy to clipboard operation
UnityStandaloneFileBrowser copied to clipboard

Web GL only need to set specific extension (.obj)

Open robertb878 opened this issue 7 years ago • 1 comments

I really like your work it's really clean for all the other platforms except for the WebGL which you pointed it out. If you can help me by just setting the extension it would be really great.

Thank you in Advance! :-}

robertb878 avatar Feb 13 '18 11:02 robertb878

Hi, thanks for kind words.

I tried setting extension in the js plugin at the time, but didn't spend much time on it. So I've commented it out.

I think you can try these:

  • Uncomment "filter" parameter at here
  • Change "filter" to "filterPtr" and get string from pointer with "filterName = Pointer_stringify(filterPtr);"
  • Uncomment set filter code at here and set filterName to 'accept' attribute. (I don't know what the correct format is, so you may need to try a bit)
  • Send extension to "UploadFile" plugin method in the c# side.

gkngkc avatar Feb 13 '18 19:02 gkngkc