1
\$\begingroup\$

im trying to figure out how to recall an external file in runtime on iOS device. I've already tried using Application.data+"/Raw/MY_FILE", with Application.streamingAssetsPath+"/MY_FILE", and with Application.persistentData+"/Raw/MY_FILE" (but, if i dont get wrong, persistentData is used for write, i need just of reading).

Please, anyone can help me?

\$\endgroup\$
1
\$\begingroup\$

Have you added your file inside a folder named "StreamingAssets" in Unity Editor?

So, you can get it in runtime using this path: Application.dataPath + "/Raw/YOUR FILE NAME".

More info: Streaming Assets

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.