ドキュメント

Unity Engine

Unity Engine

WaitForCompletion(int)

Blocks on the main thread until the load operation completes. This function can be slow and so should be used carefully to avoid frame rate stuttering.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Loading
  • Assembly: UnityEngine.ContentLoadModule
public bool WaitForCompletion(int timeoutMs)

Parameters

timeoutMs

The maximum time in milliseconds this function will wait before returning. Pass 0 to block indefinitely until completion.

Returns

Type

Description

boolReturns false if the timeout was reached before ContentFile completed loading.