Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
24
Question by Ben · Jun 13, 2010 at 10:43 PM · editorgameview

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?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
35
Best Answer

Answer by Eric5h5 · Jun 13, 2010 at 11:19 PM

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.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image qJake · Jun 14, 2010 at 12:13 AM 0
Share

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

avatar image qJake · Jun 14, 2010 at 12:18 AM 0
Share

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.

avatar image Eric5h5 · Jun 14, 2010 at 03:47 AM 0
Share

@SpikeX: $$anonymous$$eh...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? ;)

avatar image qJake · Jun 14, 2010 at 07:04 AM 1
Share

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

avatar image Eric5h5 · Jun 14, 2010 at 07:13 AM 1
Share

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

Show more comments
avatar image
39

Answer by qJake · Jun 13, 2010 at 10:46 PM

Update

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()
{
     if(Input.GetKeyDown(Keycode.P))
     {
          Debug.Break();
     }
}

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.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ben · Jun 13, 2010 at 10:50 PM 0
Share

Awesome. Thanks!

avatar image qJake · Jun 13, 2010 at 10:57 PM 0
Share

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!

avatar image Eric5h5 · Jun 13, 2010 at 11:23 PM 0
Share

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.

avatar image qJake · Jun 14, 2010 at 12:37 AM 0
Share

Fixed my answer :P

avatar image GrayedFox · Feb 25, 2014 at 03:06 PM 0
Share

Found the simple pause script very useful for testing. Thanks

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Is there a way to emulate a touch in the Game view of the editor 1 Answer

Snapping view rotation 0 Answers

Unity Scene View's right-click + WASD doesn't look 3D anymore? 2 Answers

display editor script in the game window 0 Answers

Prefab view is tilted in project tab 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges