기술 자료

Unity Engine

Unity Engine

RegisterCancelCallback(int, Func<bool>)

Registers a callback that is called when the user requests to cancel a running progress indicator's associated task.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Parameters

id

The progress indicator's unique ID.

callback

The function called when a request to cancel a progress indicator's associated task is made. The function returns true if it actually cancelled the task.

Remarks