Is there a void function for when an editor window loses focus?

Hey again all!

Is there a void function that I can write into my editor window that will trigger when my window loses focus(not selected) so if I switch to another window it can do stuff?

(void OnDisable does not work for this)

thanks in advance for your input.

I’m assuming you’re talking about an ‘EditorWindow’, look at the documentation:

That ‘OnLostFocus’ one looks pretty promising.

1 Like

Thank you, That’s what I was looking for