Keyboard shortcut to pause game view play?

Is clicking the pause button at the top of the Unity editor window the only way to pause the game in game view or is there a keyboard shortcut that can be used?

more ▼

asked Jun 13, 2010 at 10:43 PM

avatar image

475 67 51 55

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

2 answers: sort voted first

Look in the Edit menu in Unity.

alt text

It should be something similar in Windows. In OS X, you can make any menu item have any keyboard shortcut you want, so if you don't like the default (or if there isn't one), feel free to change it in the system keyboard preferences.

more ▼

answered Jun 13, 2010 at 11:19 PM

avatar image

116k 62 261 747

Wait, this works when the Game window has focus? That doesn't seem right... there shouldn't be any keyboard shortcuts that work while the game has focus in the editor, so as not to disrupt the game input. I disagree with this implementation. :P

Jun 14, 2010 at 12:13 AM qJake

So it appears that it does work in-game... again, I don't like that. What if someone's game used that keyboard shortcut? I don't know... I just think it would be better if it only worked if the editor itself had focus, or you had to define your own shortcut if you wanted it.

Jun 14, 2010 at 12:18 AM qJake

@SpikeX: Meh...it's more convenient to use the keyboard shortcut (I haven't actually clicked the play/pause icons in, I think, years), and how likely is it that you need the Command(ctrl)-Shift-P combo in-game? ;)

Jun 14, 2010 at 03:47 AM Eric5h5

Also... is that 10.4 I see? Someone needs to upgrade ;) You know they're testing 10.7 already at Apple HQ, right? ;)

Jun 14, 2010 at 07:04 AM qJake

@SpikeX: If you can get Apple to release a new Mac Pro, I'll upgrade...there's no real point putting 10.5 on my G5.

Jun 14, 2010 at 07:13 AM Eric5h5
(comments are locked)
10|3000 characters needed characters left


Control+Shift+P in Windows pauses the editor (Command+Shift+P on OSX).

If you want to pause manually:

You can create your own "pause hotkey" by doing something like this:

void Update()

This makes it so when you press "P", Unity will pause the game, exactly like hitting the "Pause" button in the editor. Alternatively, you can code your own script that uses Debug.Break(); somewhere, because whenever you call that it's just like hitting Pause in the editor.

more ▼

answered Jun 13, 2010 at 10:46 PM

avatar image

13k 93 162 255

Awesome. Thanks!

Jun 13, 2010 at 10:50 PM Ben

If this answer worked for you, consider upvoting (hit the grey Up arrow on this post), and accepting the answer (click the checkmark outline) so other people know this was the correct answer. Thanks!

Jun 13, 2010 at 10:57 PM qJake

Alas, it's not the correct answer...you definitely can use a keyboard shortcut for pausing in-game, just look in the Edit menu for what it is.

Jun 13, 2010 at 11:23 PM Eric5h5

Fixed my answer :P

Jun 14, 2010 at 12:37 AM qJake

Found the simple pause script very useful for testing. Thanks

Feb 25, 2014 at 03:06 PM GrayedFox
(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



Answers and Comments



asked: Jun 13, 2010 at 10:43 PM

Seen: 27504 times

Last Updated: Feb 25, 2014 at 03:06 PM