Hello! I am currently working on a game and I came across a problem : The InvokeRepeating function doesn’t work whatsoever. I can’t figure out whats wrong. If anyone has an idea it would be much appreciated. Thanks in advance
Seems to be working fine for me, I copied your code here into a new script to test it directly.
The simplest… it’s connected to a GameObject, and is active and enabled, right?
What’s the rest of your script look like?
Can you scale the script down to just a invokerepeating call and reproduce? If it works when scaled down, at what point in trimming out unrelated code did it start working?