Possible to view StreamingAssets folder on iOS?

For simplicity sake I’ve decided to put my config file in the StreamingAssets folder.
But I will need to be able to manually edit this file on the iOS device with some type of test editor file explorer.

Can any iOS devs tell me if this is possible?

only your application has access to the folder
write yourself some imGUI interface for the file

ok thanks, so persistentDataPath would be a publicly accessible folder on iOS?

no, your app is sandboxed on iOS: https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html

see how Unity app maps them here: https://docs.unity3d.com/ScriptReference/Application.html

general data exchange between applications on iOS is indirectly via OS only

you can access Documents folder via iTunes File Sharing, too. I believe StreamingAssets are accessible this way ( but haven’t tried it for some time )

You can access this folder through xCode.
Select Window->Devices.
Then select your devices. You should see your developed apps. Select your app, and click on the wheel. Download your container, edit your file by browsing the container content (StreaminAssets should be located in a “Documents” folder inside the package), then select Replace Container.

Wow, so convoluted compared to Android. So no way to edit a config file on the actual device?

StreamingAssets is not located in a Documents folder.

Look at the paths returned by Application.persistentDataPath and Application.streamingAssetsPath, they’re totally different. Application.persistentDataPath points to the Documents folder that you can read/write from/to. I’m not sure you can write to StreamingAssets.

Read about StreamingAssets in the manual here.

Thanks.
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 folder location in unity?? Application.persistentDataPath points to the applications private Documents folder

/var/mobile/Container/Data/Application/<insert long random name>/Documents
1 Like

Did you find a solution to this problem?