- Home /
Question by
Natasha Jalen · Oct 10, 2014 at 08:07 PM ·
c#textread
A little bit of help is needed!!!
I've created a txt file and the txt file is on my desktop. How do i get unity to read this external file by using C# and display it on the web player html? I tried researching around but i couldn't get any solution.
Comment
Answer by tanoshimi · Oct 10, 2014 at 08:10 PM
The security sandbox prevents Unity applications from accessing arbitrary files on the host computer filesystem. If you want read a text file into your game during runtime you should save it in the Resources folder: http://docs.unity3d.com/Manual/LoadingResourcesatRuntime.html