Documentation

Unity Engine

Unity Engine

OnDestroy()

OnDestroy is called to close the EditorWindow window.
Read time 1 minuteLast updated 2 months ago

Definition

public void OnDestroy()

Remarks

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

Examples

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