yasirkula / UnityNativeGallery

A native Unity plugin to interact with Gallery/Photos on Android & iOS (save and/or load images/videos)
MIT License
1.39k stars 199 forks source link

Is there a way to browse and select images within Unity using UGUI without calling the native Android gallery? #326

Open 414726193 opened 1 month ago

414726193 commented 1 month ago

Is there a way to browse and select images within Unity using UGUI without calling the native Android gallery? Because the method of calling the native gallery does not work in VR.

yasirkula commented 1 month ago

NativeGallery doesn't provide a way to do that. You could try some hardcoded paths (e.g. "storage/emulated/0/DCIM") and see if you can access images under it via System.IO APIs. You'll most likely need permission to do so, NativeGallery.RequestPermissionAsync could be used for that.