文件名称:unity 线程使用插件
文件大小:25KB
文件格式:UNITYPACKAGE
更新时间:2022-12-04 20:52:13
Unity Thread UnityThread
To build a truly responsive Unity game, you must keep long-running operations off of the main thread, and be careful to avoid blocking the main thread. This means you will need to execute various operations in the background. Unity's coroutines are ALWAYS executed on the main Thread Executing threads in the background implies carefully go back to the main thread when you have to manipulate Unity's objects. Piece of cake with this package, just use this sentence: Task.RunInMainThread(SomeFunct