Version: 2023.1
言語: 日本語
public static Awaitable EndOfFrameAsync (CancellationToken cancellationToken);

パラメーター

cancellationToken Optional cancellation token used to signal cancellation.

説明

Awaitable resuming after all Unity subsystem have run for the current frame.

private async Awaitable DoSomethingAsync()
{
   Debug.Log("Before game systems got updated for current thread");
   await Awaitable.EndOfFrameAsync();
   Debug.Log("After game systems got updated for current thread");
}