文档

Unity Engine

Unity Engine

FixedUpdateAsync(CancellationToken)

Resumes execution on the next fixed update frame.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Awaitable FixedUpdateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken

Returns

Type

Description

Awaitable

Remarks

Note: This method can only be called from the main thread and always completes on main thread. Also, in the Editor, this Awaitable will only complete when the game is playing (it will never complete otherwise).