Access Monobehavior Instance from Static Function of Editor Script

I have tried a few different ways so far but nothing has worked. Not entirely sure if this is possible at all. Specifically I am trying to use CoRoutines from inside of a static function of an Editor Script.

Coroutines work ONLY at runtime. The coroutine scheduler is not running in the editor.

What you can do is using your own coroutines but they work a bit different. You would use the Update function or the update delegate to drive your scheduler.

If you talk about runtime you can access scripts on GameObjects like always: Use either FindObjectOfType, GameObject.Find and use GetComponent