Version: 2023.2
언어: 한국어

Awaitable.EndOfFrameAsync

매뉴얼로 전환
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");
}