Question by
MichaelLampel · Aug 23, 2021 at 07:45 PM ·
aiupdate functionthreads
How can I run an AI on a separate thread in Unity and use it to set variables in an Update call
I have tried running Tasks with await from an Update but the rest of the game is hung up, the Update doesn't seem to exit and return, so I need a way to either run the AI from an event in the game or to write code that allows Update to skip over the executing thread until it is finished.
Comment