- Home /
How to change UI or GameObject with Thread
I want to develop a net game. And I use thread to loop for sockets' communication. There will do some reactions when client's socket receive some orders.But UI can only be changed in main thread. So I have to make some flag variables to be turned on/off in those callback function, and checked in Update function to make some change. Is there any easy way to solve this problem?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613192717im_/https://answers.unity.com/themes/thub/images/avi.jpg)