Make Editor Script run on Unity Editor focus?

Hi there,

Just wondering if there’s a way to run an editor script when Unity gains focus?
I’m just going back and forth a lot to my 3d app and I’d love to have it auto run to process my scene elements.

Thanks,
Pete

This? Unity - Scripting API: EditorWindow.OnFocus()

Hey thanks man but I’m using Editor, not Editor Window.

It doesn’t look like it has as many options…

Sorry… I mix up terminology , sometimes :slight_smile:

No worries! I’m really new to editor scripts so I do that same :slight_smile: