Greetings all
I’m in the midst of trying to port a Facebook game from Unity’s web player to WebGL so that I can maintain compatibility with the recent changes in Chrome. From my understanding, WebGL doesn’t support multithreading, which leaves me a bit flummoxed as to how to handle things that were once simple tasks, like making use of WaitForSeconds, etc. If I can’t use coroutines in my code, how would I achieve something simple, like a wait timer? (I’m also working on the assumption that coroutines are a form of multithreading – I’m new to programming and may have the wrong impression here.) Luckily, I don’t have a ton of code to revamp, but I’m also not sure what alternatives exist or where to start with revamping these key components. Any advice would be greatly appreciated. Thanks!
Your fine, cooroutines are not multi-threading.
1 Like
Fantastic! I wasn’t sure & was just under the assumption that the coroutines were being fired off somewhere other than the main thread. Good to know!! Now all I have to worry about is switching my BaaS out from Parse, which doesn’t support WebGL, to Gamesparks, which does.
That’ll be relatively painless from the looks of things.
1 Like