Is there a difference in using yield(frames) in a while(true) Vs using Time.frameCount to limit code iterations?
yield return null, stop it’s process until next frame, as Time.frameCount keeps track of the total frame passed since the start, either way you would need to add a variable to keep track of the number of frame passed, so no there is no difference, but if you were talking about yield return new WaitForSeconds(), yes there is, since it’s time base and not frame base…