Unity做Socket服务器监听子线程与主线程交互
在使用Unity进行Socket通信的时候使用了线程,在接收到消息后再创建物体,使用了Resource.Load,发生了错误:UnityEngine.UnityException: Load can only be called from the main thread.Constructors and field initializers will be executed from the loading thread when loading a scene.Don't use this func
原创
2020-07-18 21:21:02 ·
1314 阅读 ·
0 评论