Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WaitForCompletion()

Synchronously waits for the operation to complete.
Read time 1 minuteLast updated 5 days ago

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.