Home

Published

- 1 min read

unity call a function every x seconds

img of unity call a function every x seconds

The solution for this is noted below

unity call a function every x seconds

Solution

   float x = seconds before the first invoke;
float y = seconds between every invoke;

InvokeRepeating("Function", x, y);

Try other methods by searching on the site. That is if this doesn’t work