Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 sloankelly · Oct 30, 2014 at 04:42 PM · resolutionfullscreenresolution settingswindowed

Setting game as full screen, but opens in window between two monitors

I've been scratching my head over this for a day now. Some of our testers have reported that the game initially boots between their dual monitor setup. Our game start up defaults to fullscreen (from the player settings), with no resolution dialogue.

As you can see from the screenshot, this doesn't work and the player boots to windowed mode, centred on the two monitors.

Game startup in middle of dual monitors

Comment
Add comment · Show 2
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 C Iacobucci · Nov 03, 2014 at 03:31 PM 0
Share

Bumping. I'd like to get an answer to this as well. It seems like it's trying to center the window before full screening, but ends up in between the multiple displays.

avatar image sloankelly · Nov 06, 2014 at 04:10 PM 0
Share

I know I'm not alone in this :) Has anyone found a workaround for this?

1 Reply

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

Answer by sed · Nov 19, 2014 at 11:15 AM

The solution I've found is to use:

 Screen.SetResolution (Screen.currentResolution.width, Screen.currentResolution.height, true);

Add it to Awake() function of one of your behaviours that are known to be there from the app's launch and it will go straight to native res fullscreen.

If you want it to happen only on windows you can use defines:

     void Awake()
     {
         #if UNITY_STANDALONE_WIN
         Screen.SetResolution (Screen.currentResolution.width,
                               Screen.currentResolution.height, true);
         #endif
     }
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 sloankelly · Nov 20, 2014 at 03:54 PM 0
Share

Worked a treat. 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

28 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

Related Questions

Screen.SetResolution doesn't work when the game starts windowed? 0 Answers

How can I enter fullscreen mode in a very low resolution? 0 Answers

Resolution dialog has no influence. 1 Answer

[Help] FullScreenMode - what is it? 0 Answers

Unity PC Build Keep Fullscreen in Windows 7 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