How do you keep your game running even when you switch out of it?

Whenever I run my game in unity or build a standalone, it works fine. When I alt-tab out of it or switch to another program, the program stops going and then continues right where I left off when I come back to it.

I want the game to continue running while I am switched out. Is this possible?

The reason I want to do this is that I’m making a dedicated server and client. I want both programs to continue to run in the background.

Thanks for your help!

Note: NEW QUESTION FOR UNITY 4.6 to satisfy jashanbitch comment

hi…you can do this by settings. Goto edit>project settings > player > Run in background check that option. and then build your game. it can works in background also.