- Home /
In edit mode SocketServer thread will be stopped when any asset change
I create a winform application to manage the unity3d project. I have tried to use UnityEngine.dll and UnityEditor.dll in my application. But methods in the dlls can only be called internally inside of unity3d.
So I have to create editor extension for unity editor. I run a socket server in unity3d to receive request from my winform application. In my winform application, I can get any infomation by sending request to the socket server. But if I want to send request to change asset(such as MoveAsset, ImportAsset), I find that unity3d will start loading and stop my socket server.
How can I prevent unity3d stop my socket server? Or running thread in edit mode is not a good method?
Answer by zhoulong0116 · Jun 05, 2014 at 03:42 AM
I find that if I change script or dll, unity will start compile and all the script will reload. So my unity3d program have been reset. And also will stop EditorApplication.update.
The similar question is EditorApplication.update reset
So unity3d can only be a client to communicate with other application.