Editor Script: How to run a function when scene first loads?

I would like to have a portion of my Editor Script run right away when the scene is loaded, not just when Unity starts- but each time new scene is loaded. It seems this should be obvious…but I’ve been digging through the reference, here, the forums, no luck so far.

Thanks very much!

I think you mean an extension of Unity, look up here:

Extending the editor

Greetings.