Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Access files/file browsing on IOS

Discussion in 'Scripting' started by Lockhout, Jun 18, 2020.

  1. Lockhout

    Lockhout

    Joined:
    May 14, 2020
    Posts:
    5
    Hello hello!

    We have a File Browser used to find files on mobile devices. Using it on Android folders is easy, but we can't seem to find any directories on iOS. We currently use PersistentDataPath but this only gives us Documents from inside the app folder, not Documents from the phone "in general".
    From what we've seen, when we try to browse files on other applications, there is an option called "On My Phone". Do you guys know how to open "Documents" or this "On My Phone"?
    Do we need to use the "Files" app? If so, does it need to be natively? We haven't found any kinds of SDK for Unity.
    Any other ideas? Like a specific path or url or anything?

    We thank you all in advance!
     
  2. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,256
    iOS enforces sandbox environments. Apps do not have access to any files outside of its own "sandbox." You can bypass this by jail breaking the phone.
     
  3. x2stone

    x2stone

    Joined:
    Dec 17, 2014
    Posts:
    22
    Last edited: Apr 29, 2021