unity call every x frames code example
Example: unity call function every x frames
private int interval = 11;
void Update()
{
if (Time.frameCount % interval == 0)
{
//do stuff
}
}
private int interval = 11;
void Update()
{
if (Time.frameCount % interval == 0)
{
//do stuff
}
}