WaitForFixedUpdate
Описание
Приостанавливает выполнение сопутствующей программы до следующего исправления.
WaitForFixedUpdate может быть использован только с yield в сопроцедурах.
Дополнительные ресурсы: 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"); } }