- Home /
Question by
Agrios · Nov 10, 2010 at 02:21 PM ·
resolutiondialogsetting
BuildPipeline Resolution Dialog Setting
Hi, I am using this to build standalone player:
private static string[] scenes = new string[] {"Assets/Scenes/loader.unity", "Assets/Scenes/gamelevel.unity", "Assets/Scenes/gameover.unity"};
public static void WindowsStandalone() {
PlayerSettings.productName = "Game With Resolution Dialog Setting Enabled"; BuildPipeline.BuildPlayer(scenes, "Distribution/Win/MyGameStandalone.exe", BuildTarget.StandaloneWindows, 0);
}
Question: How can I set in this C# script Resolution Dialog Setting to be "Disabled" or in general other then set up in Unity Editor. I need to build both, one with and one without initial dialog showing up.
Comment
Answer by KlausJank1 · May 22, 2013 at 08:24 AM
PlayerSettings.displayResolutionDialog = ResolutionDialogSetting.Disabled;