- 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