ドキュメント

Unity Engine

Unity Engine

OnDisable()

Called when the graph is unloaded, or goes out of scope in the editor.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public virtual void OnDisable()

Remarks

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 Graph.OnEnable and is useful for maintaining consistency across editor sessions.