Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 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
4
Question by mirw9 · Jun 24, 2011 at 02:31 PM · gamegraphicssetupunityengine.object

Can I disable screen selection etc dialog at startup?

Hi, i'm fairly new to unity. i was wondering if it is possible to remove the graphics setup at the beginning of a unity game. after you build the game when you run it the is a grphics setup/input index. i wanted to know if it was possible to remove that.

Comment
Add comment · Show 3
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 Marnix · Jun 24, 2011 at 03:02 PM 1
Share

@mirw9 Not a good title of your question. People with the same problem will not easily find this answer and will ask the same question again.

avatar image flaviusxvii · Jun 24, 2011 at 03:04 PM 0
Share

Agreed. It's an awful title. See: http://answers.unity3d.com/questions/133869/how-to-ask-a-good-question.html

avatar image mirw9 · Jun 24, 2011 at 04:10 PM 0
Share

sorry, i wasn't sure what to put, as it was my first question, thank you for fixing it.

3 Replies

· Add your reply
  • Sort: 
avatar image
14

Answer by aldonaletto · Jun 24, 2011 at 03:06 PM

You can bypass the startup resolution dialog: Build Settings -> Player Settings -> Resolution and Presentation -> Display resolution dialog: enable/disable.
At runtime, the resolution can be set by Screen.SetResolution - read about in:

http://unity3d.com/support/documentation/ScriptReference/Screen.SetResolution.html

I've never used this, and I read recently about a Screen.resolutions[] issue:

http://answers.unity3d.com/questions/132067/screenresolutions-problem.html

Comment
Add comment · 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
3

Answer by Molix · Jun 24, 2011 at 02:59 PM

In the PlayerSettings, there is an option to display the resolution dialog or not. Info here.

Comment
Add comment · 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
1

Answer by pgilmorepf · Jun 24, 2016 at 05:01 AM

I need to do the same thing, with a caveat: I'm doing this from an automated build system in 4 versions of unity: 4.7, 5.1, 5.2, and 5.3 I can't pre-set and save settings files that work in all 4 versions (I tried, it failed)

I need to set the player settings in script, before building the windows exe, or force it from the command line.

It sounds like command line isn't an option, so how do I set the Player Settings from c#, before making the call to make the build?

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 pgilmorepf · Jul 26, 2016 at 09:25 PM 0
Share

I eventually answered my own question:

             PlayerSettings.SetPropertyInt("ScriptingBackend", (int)ScriptingImplementation.$$anonymous$$ono2x, BuildTargetGroup.Standalone); // Ideal setting for Windows
             PlayerSettings.defaultIsFullScreen = false;
             PlayerSettings.defaultScreenHeight = 768;
             PlayerSettings.defaultScreenWidth = 1024;
             PlayerSettings.runInBackground = true;
             PlayerSettings.displayResolutionDialog = ResolutionDialogSetting.Disabled;
             PlayerSettings.resizableWindow = true;

Hope this helps somebody!

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

7 People are following this question.

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

Related Questions

Can a Developer without graphical skills build its game? 1 Answer

Thread Crash UnityGfxDeviceWorker on MacOS 0 Answers

How can I speed up my game? 2 Answers

Why is my Unity Scene gray?Why does my Unity scene look gray? 0 Answers

How to know (better by GUI) the total average nb of Triangles, Average Number of Vertices and Average nb Draw Calls in a game? 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