Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnDestroy()

OnDestroy is called to close the EditorWindow window.
Read time 1 minuteLast updated 5 days ago

Definition

public void OnDestroy()

Remarks

EditorWindowOnDestroy (OnDestroy())
A simple example of OnDestroy()

Examples

{code Modules/UIElements/Tests/UIElementsExamples/Assets/EditorWindowCodeExamples/OnDestroyExample.cs}