文档

Unity Engine

Unity Engine

WaitForCompletion()

Synchronously waits for the operation to complete.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AssetBundleModule
public void WaitForCompletion()

Remarks

Call this function if you need to wait on the main thread until the AssetBundleUnloadOperation completes. When you call
WaitForCompletion
, the Unity runtime also waits for all other pending asynchronous operations to complete.