Documentation

Unity Engine

Download Unity

Unity Engine

OnDisable()

Called when the state machine is unloaded, or goes out of scope in the editor.
Read time 1 minuteLast updated 2 months ago

Definition

public virtual void OnDisable()

Remarks

Override this method to release resources, clear temporary data, or perform any required cleanup.