I wrote my own networking code with .NET sockets. Everything works. However, when I switch out of my server program(alt-tab) it stops the server. When I switch back in, it resumes where it left off.
Is there any way to keep the UnityEngine running even when I switch out of the program?
I’m using unity basic on windows. Thanks!
Hi, welcome to the forum!
Have you tried running the server in batch mode (that’s if it’s even an option for you to do this)? There is a manual page showing you how to start Unity in batch mode from the command line.
Check out the runinbackground variable or alternatively the corresponding player setting. through that you can make unity run even if minimized.
The headless server functionality naturally would be an even stronger solution but requires Unity Pro