cancellationToken | 用于发出取消信号的可选取消标记。 |
在当前帧所有 Unity 子系统运行完成后恢复的 Awaitable。
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"); }