You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for the hard work and the code quality. I have dug a bit to understand what UnityNativeFilePicker was doing exactly and it is very clear.
I am having the same issue so I am updating this post as I assume @nextechar-hardik wont.
I have an abstraction layer on top of UnityNativeFilePicker so I can use different methods to pick files (or pick files on other systems), so I won't give the full code as it is not related, but it ends up calling the following:
Activity
yasirkula commentedon Jun 8, 2023
Can I see your code?
nextechar-hardik commentedon Jun 14, 2023
Okay let me create demo project and will share that here.
yasirkula commentedon Jun 14, 2023
I only need to see your usage of PickFile function. You can copy your C# code here.
VincentMarnier commentedon Jun 18, 2024
Hello.
First of all, thanks for the hard work and the code quality. I have dug a bit to understand what UnityNativeFilePicker was doing exactly and it is very clear.
I am having the same issue so I am updating this post as I assume @nextechar-hardik wont.
I have an abstraction layer on top of UnityNativeFilePicker so I can use different methods to pick files (or pick files on other systems), so I won't give the full code as it is not related, but it ends up calling the following:
Only png, & jpeg files can be picked. GLTF & GLB are not displayed.
I found the following post that might be useful:
https://developer.apple.com/forums/thread/716575
VincentMarnier commentedon Jun 18, 2024
Previous post
Nevermind, it works with the deprecated method too. My code was just garbage.
I'll try to find another answer to why it fails then.
yasirkula commentedon Jun 18, 2024
GLB and GLTF don't exist in the filetype lists I've posted: https://github.com/yasirkula/UnityNativeFilePicker?tab=readme-ov-file#a-importing-files. The only possible solution is to allow picking all files and then check the returned files' extensions in the callback function.