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.
@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.
Agreed. It's an awful title. See: http://answers.unity3d.com/questions/133869/how-to-ask-a-good-question.html
sorry, i wasn't sure what to put, as it was my first question, thank you for fixing it.
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:
I've never used this, and I read recently about a Screen.resolutions issue:
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.
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?
I eventually answered my own question:
PlayerSettings.SetPropertyInt("ScriptingBackend", (int)ScriptingImplementation.Mono2x, 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!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
7 People are following this question.
Mobile Graphics Settings in Menu
Stretchable Mesh Generation Techniques in 2D and 3D (Unity)
Custom trail fixed length and custom form
Android build not displaying correctly? (answered)
hollow objects, hollow mesh?