-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
File Access does not work on quest 2 #87
Comments
Can you try running this code in Awake/Start: #if !UNITY_EDITOR && UNITY_ANDROID
typeof(SimpleFileBrowser.FileBrowserHelpers).GetField("m_shouldUseSAF", BindingFlags.NonPublic | BindingFlags.Static).SetValue(null, (bool?)false);
#endif |
i had to add now it works perfectly, i can even see all the folders on the device! i have no idea why it works, but thank you a lot for the help! |
You're welcome. I don't know why it works either, I've just stopped asking myself this question some time ago 🙈 |
Hello Thmasn, I'm trying to adopt the browser to work on Quest Pro to access files on my PC, rather than Assets only. I tried following steps above but since I'm new to Unity, I think I'm doing something wrong. Could you please provide me with more information how you fixed the issue, i.e., which files had to be updated and how. Also, my controllers do not interact with the browser, while I'm not having any issues with other objects in the scene. Any hints why? Thanks so much in advance! |
The default prefab of the UI is a canvas that has a camera screen space - overlay as Render Mode, You need to change that into world space, and you need to make some other tasks as adding surface to the canvas and adding the other scripts , you can follow this link it may help you. After applying the necessary modification on the prefab, you need to adapt the instantiation of that prefab in the script FileBrowser.cs ( in my case , I had to change the line 358 , I need to get the component FileBrowser to m_instance variable ) And finally, you can test all that using this script : public class FileBrowserTest : MonoBehaviour
} I hope that I helped you, Happy coding! |
it seems to be i am the first one trying to use the file browser on a quest 2!
Description of the bug
File Access on the quest 2 seems to be limited to the apllications own folder.
everything works perfectly in the application folder which is opened by default.
but, even after granting rights to another folder to the application, only the application folder is shown. no new quick links appear on the left side of the file browser, no other files are visible in the right side item view.
Reproduction steps
video showing what happens
Platform specs
Unity version: 2021.3.29f1 on Windows
Device: "Quest 2 version 56"
How did you download the plugin: GitHub, latest version as of today
Additional info
no errors in logcat. i did add custom debug logs, which tell me:
in FetchPersistedSAFQuickLinks(), resultRaw is always "0", which causes the function to return.
my guess is that this is the cause of no quick links appearing. why is it zero? i do not know...
The text was updated successfully, but these errors were encountered: