WaitForFixedUpdate
Suspends coroutine execution until the next fixed update.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: YieldInstruction
public sealed class WaitForFixedUpdate : YieldInstruction
Remarks
WaitForFixedUpdateyieldAdditional Resources: AsyncOperation, WaitForEndOfFrame, WaitForSeconds, WaitForSecondsRealtime, WaitUntil, WaitWhile.
Examples
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"); }}