x


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.

more ▼

asked Jan 23 '12 at 07:15 PM

ramonfr gravatar image

ramonfr
93 11 20 24

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Invoke and InvokeRepeating work fine in webplayers, so the problem is probably elsewhere.

more ▼

answered Jan 23 '12 at 07:23 PM

Eric5h5 gravatar image

Eric5h5
80.2k 41 132 519

I've exported to .exe and works fine, then exported to webplayer and stills not working.

Jan 23 '12 at 08:25 PM ramonfr

I would guess you're maybe trying to make use of functionality not available in webplayers.

Jan 23 '12 at 08:29 PM Eric5h5

"use of functionality" ? More info please?

Jan 24 '12 at 10:27 PM ramonfr

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.

Jan 24 '12 at 10:35 PM Eric5h5

It's allright ppl, after I read carefully my code, I realized that there was a logical error. Now the functions are working allright.

Jan 25 '12 at 11:05 AM ramonfr
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x133
x50
x49

asked: Jan 23 '12 at 07:15 PM

Seen: 850 times

Last Updated: Jan 25 '12 at 11:05 AM