I want to download a CSV from an online source from inside my app and then read it all at run-time.
It looks like I cant put the CSV in resources as this is only for pre-compiled stuff (I think). So how would I go about doing it?
Cheers
I want to download a CSV from an online source from inside my app and then read it all at run-time.
It looks like I cant put the CSV in resources as this is only for pre-compiled stuff (I think). So how would I go about doing it?
Cheers
You can use two different ways :
1- You’re online, don’t hesitate to use a webservice and read the data from it. (Unity - Scripting API: WWW)
2- If you downloa d the file, you can use the following :
Application.dataPath
(Unity - Scripting API: Application.dataPath) or persistantDataPath in order to dynamically load a file by using the common C# function.