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 Answer 1

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

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .