- Home /
Invoke() and InvokeRepeating() not working on webplayer?
I coded my game using the functions Invoke and InvokeRepeating all over the script in order to control time events.
Now I exported the game to webplayer, and simply the invoke functions doesn't work in the webplayer.
I thought the Invoke functions couldn't work for webplayer, but then I saw an unity game for webplayer which suposedly used the Invoke functions.
Answer by Eric5h5 · Jan 23, 2012 at 07:23 PM
Invoke and InvokeRepeating work fine in webplayers, so the problem is probably elsewhere.
I've exported to .exe and works fine, then exported to webplayer and stills not working.
I would guess you're maybe trying to make use of functionality not available in webplayers.
I don't really know, that's just a guess. Some things don't work in the webplayer, like local file access, but you'd get an error message in that specific case.
It's allright ppl, after I read carefully my code, I realized that there was a logical error. Now the functions are working allright.