This version of Unity is unsupported.

Awaitable.EndOfFrameAsync

Declaration

public static Awaitable EndOfFrameAsync(CancellationToken cancellationToken);

Parameters

cancellationToken Optional cancellation token used to signal cancellation.

Description

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");
}