Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
414726193 opened this issue Jul 23, 2024 · 1 comment

Comments

@414726193
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants