• 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
4
Question by MapuHoB · Jan 18, 2015 at 02:58 PM · editorplayhotkeys

Hotkey for play (ctrl + P) not working properly

Sometimes when I click ctrl + P it plays the scene sometimes it doesn't. I tried to click on different places in order for it to run, for example over the game window, somewhere around the play button but sometimes it works sometimes it doesn't. Even when I have already clicked on play with the mouse and then immediatelly, without commiting any other action, use the hotkey, it doesn't want to stop. All of this happens until I restart unity. Once I restart it it works fine again. What am I doing wrong?

Comment
Add comment · Show 11
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 Glurth · Jan 18, 2015 at 03:21 PM 0
Share

Glurth just learned: you can press ctrl-P to play and stop the scene! cool! Glurth troubleshoots: Are you consu$$anonymous$$g or monitoring key-presses in your program? Perhaps your program is "eating up" the key-press? If this were the case: ctrl-P would only fail to STOP playing, but always work to START playing, even without restarting unity. Is this the behavior now?

avatar image MapuHoB · Jan 18, 2015 at 03:57 PM 0
Share

No, I'm not consu$$anonymous$$g any key-presses in my program and also once it stops working it stops in both situations, quiting the program or starting it.

avatar image Glurth · Jan 18, 2015 at 05:14 PM 0
Share

Well that eli$$anonymous$$ates that. I assume this happens for new projects as well? If so, perhaps we should look outside of unity? What is your OS environment? Or maybe your keyboard is dirty (or filthy, with bit's of potato-chips under the keys: like $$anonymous$$e)- does the OTHER ctrl key work any better?

avatar image MapuHoB · Jan 18, 2015 at 05:25 PM 0
Share

:d Well, haven't tried new projects cause don't have the time needed. This happens on an hourly basis, so don't feel like playing around with it for an hour at least or more to see if it happens to new projects as well but I think it does. As for the potato-chips under the keys there's for sure some :D:D but still not enough to block the input xD

avatar image Glurth · Jan 18, 2015 at 05:54 PM 0
Share

don't have the time needed

Does Reloading the project, rather than closing and re-openeing unity "fix" the problem? If that doesn't fix it, what if you open a new project before closing unity? Does that fix it? (not solutions obviously, just trying to narrow it down)
avatar image MapuHoB · Jan 19, 2015 at 12:44 AM 0
Share

I have to try if it works when open a new project before closing unity. I will write here what has happened ASAP.

avatar image MapuHoB · Jan 21, 2015 at 02:03 PM 0
Share

@Glurth , O$$anonymous$$ay so I tried what you said worked.. but noticed :D that whenever I click on open project while in the current one it anyway restarts unity. So it works, but it's the same like restarting unity and opening a new project

avatar image Fornoreason1000 · Jan 24, 2015 at 06:43 AM 0
Share

Could be a Unity Bug, what version of unity are you using?

avatar image MapuHoB · Jan 24, 2015 at 11:57 AM 0
Share

v. 4.6 (needed in order to be able to write the comment)

avatar image Glurth · Jan 24, 2015 at 04:05 PM 0
Share

hmm, perhaps it's time for a sanity check: lets see if YOUR unity program can detect CTRL-P you can use: Input.Get$$anonymous$$ey(current$$anonymous$$ey) where current$$anonymous$$ey is a $$anonymous$$eyCode enumeration: http://docs.unity3d.com/ScriptReference/$$anonymous$$eyCode.html To check if BOTH ctrl and P are held down, will require two calls to this function (or three to check both ctrl-keys)

avatar image Alexei_UA · Feb 19, 2017 at 09:31 PM 0
Share

I have the same problem. Hotkeys "Ctrl+Shift+P" and "Ctrl+P" doesn`t work!

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Stuck on EditorApplication.playModeStateChanged when hitting play 0 Answers

Saving changes while playing... 1 Answer

Editor takes over 1 minute to compile or start playing 2 Answers

Network View and Networking script crash 0 Answers

Screen Tearing in Editor? 1 Answer


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