ドキュメント

Unity Engine

Unity Engine

RegisterPauseCallback(int, Func<bool, bool>)

Registers a callback that is called when the user requests to pause or resume a running progress indicator's task.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void RegisterPauseCallback(int id, Func<bool, bool> callback)

Parameters

id

The progress indicator's unique ID.

This function is called when a request to pause or resume the progress indicator's task is made. It takes a boolean parameter that specifies whether the task needs to pause or resume. When the value is true, the task needs to pause. When the value is false, the task needs to resume. The function returns true if it actually performed the requested action.

Remarks