Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Coroutines and Static function

$
0
0
Hi, I need to call a coroutine from a static function. I don't know too much about coroutines... but I think I need it for loading a file using WWW. I found [this][1], but I don't understand how to use it... Here is my static function: public static string getFile(string path){ www = new WWW(path); return www.text; } Any helps? [1]: http://forum.unity3d.com/threads/134546-C-Coroutines-in-static-functions

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>