Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#

Graph.OnDisable

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void OnDisable();

Description

Called when the graph is unloaded, or goes out of scope in the editor.

Unity calls this method when the graph is disabled, or is destroyed. Override this method to release resources, clear temporary data, or perform any required cleanup. This method complements OnEnable and is useful for maintaining consistency across editor sessions.