x


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!

more ▼

asked Jan 08 '10 at 05:58 PM

Jason Jolley gravatar image

Jason Jolley
105 7 7 14

(comments are locked)
10|3000 characters needed characters left

4 answers: sort voted first

In the editor, go to Edit -> Project Settings -> Player. The inspector pane will now change to show the player settings. Look for the option that says "Run In Background" and check it.

This option will be held in both the editor preview and in built games.

more ▼

answered Jan 08 '10 at 06:31 PM

burnumd gravatar image

burnumd
3.3k 22 34 71

Awesome! Thanks a bunch :)

Jan 11 '10 at 04:51 PM Jason Jolley

Some people aren't finding this in more recent versions of Unity. But it's still there: In Player settings, under the section "Resolution and Presentation", you find "Resolution" and below that, there's "Run In Background".

This is only available for Web players and standalones, though (you won't find it when you have the iOS, Android or Flash tab selected.

Feb 09 at 12:44 PM jashan

thanks was wandering for how to program and improve code while I wait 20 min for program to run to see resaults

Mar 05 at 03:50 PM sdgd
(comments are locked)
10|3000 characters needed characters left

This option seems to have disappeared in 3.5. Where do we find it now?

more ▼

answered Mar 01 '12 at 09:30 PM

reedake gravatar image

reedake
11 2 2 3

This should be a comment to the accepted answer, not a new question.

Feb 09 at 12:42 PM jashan
(comments are locked)
10|3000 characters needed characters left

This option does not seen to exist in 3.5.6f4 does anyone know how to do this anymore ?

more ▼

answered Oct 28 '12 at 10:36 AM

altair2020 gravatar image

altair2020
13 1 1 2

This should be a comment to the accepted answer, not a new question.

Feb 09 at 12:42 PM jashan
(comments are locked)
10|3000 characters needed characters left

Apparently this does not work in Safari (Mac OS) for Unity v2.6.1.

more ▼

answered Feb 11 '10 at 02:56 PM

james.jeffers gravatar image

james.jeffers
5 3 4 4

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x414

asked: Jan 08 '10 at 05:58 PM

Seen: 4729 times

Last Updated: Mar 05 at 03:50 PM