Content-Length: 20626 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/WaitForFixedUpdate.html
Suspends coroutine execution until the next fixed update.
WaitForFixedUpdate can only be used with a yield statement in coroutines.
Additional resources: AsyncOperation, WaitForEndOfFrame, WaitForSeconds, WaitForSecondsRealtime, WaitUntil, WaitWhile.
using System.Collections; using UnityEngine;
public class ExampleClass : MonoBehaviour { public void Start() { StartCoroutine(Example_WaitForFixedUpdate_Coroutine()); }
public IEnumerator Example_WaitForFixedUpdate_Coroutine() { Debug.Log("Start of WaitForFixedUpdate Example"); yield return new WaitForFixedUpdate(); Debug.Log("End of WaitForFixedUpdate Example"); } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/WaitForFixedUpdate.html
Alternative Proxies: