- Home /
Question by
guy26 · Jan 11, 2015 at 09:54 PM ·
resolutionplayer settingsresolution settings
Resolution Problems
This may be a stupid question. I have an exe file. In the project settings, I disabled the set resolution screen and set the default to 1153x536. However, when I play my game, it always runs as 1024x768! I feel like I'm missing something very simple. How can I fix this?
Comment
Answer by AcE_fLoOdEr · Jan 12, 2015 at 12:23 AM
Because you are changing the scene view resolution. It has no effect whatsoever on the game. If you really want to force the user to 1 resolution, you could search up on how to remove the resolution selection from the options menu on the start of the game.
Then make a new C# script and call it "Force Resolution" then add it to an empty GameObject in your scene.
public int Width;
public int Height;
public bool FullScreen = true;
void Start()
{
Screen.SetResolution(Width,Height,FullScreen);
}
hope this helps