Search Unity

Load from public Documents folder??

Discussion in 'iOS and tvOS' started by dmelamed, Mar 21, 2017.

  1. dmelamed

    dmelamed

    Joined:
    Jul 2, 2013
    Posts:
    4
    Pulling my hair out to do something that is SO simple on Android.

    I want to simply have a config text file that I can manually edit on the iOS device and is read once (read only) when my application boots on iOS.

    So I've installed a open source text editor on iOS, but it can only access and edits files in the public Documents folder.
    Fine.

    How can we load from this public Documents location in unity?
    Can't use Application.persistentDataPath since it points to the application's private Documents folder
    Code (csharp):
    1.  
    2. /var/mobile/Container/Data/Application/<insert long random name>/Documents
     
    Last edited: Mar 21, 2017
  2. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    Try searching on stackoverflow. It looks like there's some information there but it might be not what you want to hear.