- Home /
How to receive a message that Unity is closing on a docked EditorWindow
Hello.
I'm working on a dialog system for my game so that the person in charge can create dialog trees and all.
I want to store some things, such as last file and last folder (both ints), when the editor window is closed. The only problem is OnDestroy and OnDisable (or even OnLostFocus) are not called when the window is docked AND Unity is closed.
If I close the tab, it is called. If the window is not docked, it is called.
I hope I could make myself clear and someone knows how to do it. Thanks in advance!
Your answer
Follow this Question
Related Questions
Is there a way to disable Maximize on an EditorWindow? 1 Answer
Enum Value Changing At Runtime On A Prefab 1 Answer
How do I animate graphics in a custom EditorWindow ? 0 Answers
Custom Editor Window Nodes Unresponsive Button 1 Answer
Asset variables needs [SerializeField] to be saved when reopening Unity. 1 Answer