Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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