Call Update Methode from External Thread

Hi everyone!

I have a main thread and an external thread. My external thread adds a list element to the gameObject class on finish, which is updated with the next main thread call.

How can I force/call my update methode (can only be executed with the main thread) while inside the Editor Mode from the external thread?

Thanks

As far as I know, there isn’t a method to call that invokes something on the main thread, since Unity tends to discourage multithreading pretty hard. One workaround is to attach a delegate to EditorApplication.update which polls to see if the external thread is finished, and if so perform the update and remove itself from EditorApplication.update.