Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RegisterPauseCallback(Func<bool, bool>)

Registers a callback that is called when a user pauses a running progress indicator's task.
Read time 1 minuteLast updated 6 days ago

Definition

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

Parameters

This function is called when a progress indicator's task is paused. 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