Documentation

Unity Engine

Unity Engine

destroyCancellationToken

Cancellation token raised when the MonoBehaviour is destroyed (Read Only).
Read time 1 minuteLast updated a month ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public CancellationToken destroyCancellationToken { get; }

Remarks

Note: You must cache the
destroyCancellationToken
before you destroy the MonoBehaviour object.