Editor Window functions?

I noticed that no matter how I name a method inside an EditorWindow class, it will always be called atleast once. I’m confused… is this intended behaviour?

Way too unspecific question. If you debugged your issue the same way I would say you just misinterpreted your findings.

An editor window is derived from ScriptableObject. So of course it gets Awake and OnDestroy as well as OnEnable and OnDisable called once during it’s lifetime like any other scripbable object.

Besides those it also receives the following messages:

OnFocus
OnGUI
OnHierarchyChange
OnInspectorUpdate
OnLostFocus
OnProjectChange
OnSelectionChange
Update

just like the documentation “documents”. If you name your method “AAA” and you’re not calling it yourself from any other callback I can guarantee it will not be executed.

If you need any further help you have to get way more specific with your problem.