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
2
Question by Gillissie · Apr 20, 2011 at 01:29 AM · fullscreen

disable esc to exit full screen?

I realize that the web player uses Esc as a safety mechanism for users to exit full screen. However, I want to use Esc for doing other things in my game, like canceling an action. Is it possible to disable to "Esc to exit full screen" functionality? I have a button on my interface, with code that toggles full screen, so I don't need the Esc to exit.

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
3
Best Answer

Answer by Bunny83 · Apr 20, 2011 at 01:47 AM

That's not a up to you. If you have the webplayer installed Unity content on a webpage will load automatically. It's much more important for the user to have a save way to get the focus back and exit the full screen. Otherwise you can trap the user in your application without a way to get out.

So the simple answer to the question is: NO.
Use another key for menu (since "escape" is even more suitable for "get me outa here" than "open the menu"). I know, most standalone games use escape for menus or navigation but the webplayer is something different. You have to live with it.

Comment
Add comment · Show 8 · 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 Justin Warner · Apr 20, 2011 at 01:57 AM 0
Share

Absolutely. The keyboard has over 100 keys on average... If you have that many ways to do things, than maybe trash the game, but I doubt you do... So have a GUI button to cancel, and keep the escape key. Psychologists are hired to do this work, unless you have a degree in psych, then you can consider, buuuut, yeah. =)

avatar image Eric5h5 · Apr 20, 2011 at 01:58 AM 0
Share

Yep, it would be really bad if it was possible to disable this functionality. $$anonymous$$aybe you're being nice and providing an alternate way of getting out of fullscreen, but not everybody is necessarily going to do that, leaving you stuck in fullscreen with no way out. It's not feasible to allow that to happen by disabling expected behavior.

avatar image Justin Warner · Apr 20, 2011 at 02:01 AM 0
Share

Also to add, I see your from $$anonymous$$I, well, being that you're from America, you should understand that Americans aren't... Smart? Intelligent? Have common sense? Etc. So, I think now you can see that it's not the greatest idea, haha.

avatar image Eric5h5 · Apr 20, 2011 at 03:08 AM 3
Share

That's a lame comment. Stupidity is universal.

avatar image Gillissie · Apr 20, 2011 at 05:41 AM 1
Share

Eric, I understand the reasoning behind it, but I think it would be better if the Unity player automatically confirmed with the user before going into fullscreen, rather than using up a commonly used key within games. After all, I can't imagine that the standalone builds exit full screen with Esc, though the same argument exists regarding getting stuck in full screen mode. The only difference is that the web player will automatically start (hence the confirmation). Oh well. I guess players will have to get used to it.

Show more comments
avatar image
0

Answer by psychentist · Apr 20, 2011 at 03:09 AM

why not use tilde (~) instead. it's close enough to escape to be useful for things like that.

Comment
Add comment · Show 1 · 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 Bunny83 · Apr 20, 2011 at 03:44 AM 1
Share

Well, that depends on your keyboard layout ;). On my keyboard(german) the tilde is the third case on my plus(+) key, that would not be a nice key for me :D. Below the escape key i have the circumflex (^). It's not that easy to find a key that stays the same on all keyboard layouts. Well, you can use Application.systemLanguage to do a switch case for each language :D

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

2 People are following this question.

avatar image avatar image

Related Questions

How do I make my webplayer fill the entire browser window? 8 Answers

Where is FullScreenMovieScalingMode used 1 Answer

How to check if fullscreen on or off? 1 Answer

FullScreen Mode Help 1 Answer

Change resolution, but not screen size. 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