09-16-2021, 12:54 AM
To finish out the waiting for a single frame, I found this in the Unity forum:
https://forum.unity.com/threads/how-to-wait-for-a-frame-in-c.24616/
TLDR - Have your coroutine do a "yield return null", which accomplishes the feat without the worry of FPS time. Indeed, my new method works quite nicely.
Thanks again for your help, I appreciate it.
https://forum.unity.com/threads/how-to-wait-for-a-frame-in-c.24616/
TLDR - Have your coroutine do a "yield return null", which accomplishes the feat without the worry of FPS time. Indeed, my new method works quite nicely.
Code:
IEnumerator MoveToTop()
{
yield return null;
transform.position = new Vector3(960, 1080);
}
Thanks again for your help, I appreciate it.