Documentation

Unity Engine

Unity Engine

destroyCancellationToken

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

Definition

public CancellationToken destroyCancellationToken { get; }

Remarks

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