- Home /
reading text file from unity doesnt work on iphone
hi, i have a local text file in my asset folder in my unity project which i will need to read. it works on the unity simulator, however when i port it to the iphone i lose text file. whats a workaround for this?
Comment
Answer by cj_coimbra · Sep 12, 2011 at 07:02 PM
Use a public TextAsset and then drag and drop the txt file in the inspector slot. Then manipulate it in the code as a normal string with TextAsset.text
Your answer
![](https://koobas.hobune.stream/wayback/20220613115250im_/https://answers.unity.com/themes/thub/images/avi.jpg)