How do I waitForSeconds inside a script which executes in editor mode?

So, if I have a script which contains @script ExecuteInEditMode(); how can I set up a wait function of some kind; as there is no possibility to use yield in any way.


Invokes work, but they can be rickety. I’ve solved this problem 3 or four times but it always takes me a few hours to code because of all the trial and error (building the engine for a skyrim style sim game). Yeah I think it’s a little weird as update works differently in the editor(per change as someone was saying). I’m here actually trying to speed up the process for yet another field I’d like to automatically fill in the editor without freezing all the other fields. Wish me luck!