How to start a coroutine from a command line script
I'm writing a command line script (not a MonoBehaviour) where I need to do some async work with a coroutine. Is there a way to start a coroutine outside of MonoBehaviour?
Answer by pavelgj · Apr 19, 2017 at 07:04 PM
I ended up using EditorApplication.update
to marshal the event data from another thread back to main editor thread.
Answer by FortisVenaliter · Apr 13, 2017 at 04:20 PM
Nope. Coroutines are a Unity thing for MonoBehaviours.
You probably want to read up on Asynchronous Programming to approximate it with other methods.
Your answer

Follow this Question
Related Questions
Redirecting Standard IO on process on new thread 0 Answers
Best way to get code to run at very precise timing? 0 Answers
Enabling Python in Unity 2 Answers
Start a Thread in Class Constructor 0 Answers
Persistent Timers in Couroutines 0 Answers