Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


destroyCancellationToken

Cancellation token raised when the MonoBehaviour is destroyed (Read Only).
Read time 1 minuteLast updated 10 days 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.