- Home /
Game view sizes in Unity 5
Since Unity 4.2 custom game view were stored in file 'sizedProjectSettings/GameViewSizes.asset'. I don't have this file in Unity 5 project.
How can I set game view resolution per project (those in 'Game' window) in Unity 5? I want to commit my custom resolution to repo.
Any ideas?
for android you can type this script for Re-size screen :
function Start (){
Screen.SetResolution (640, 480, true);
}
you have to attach the script to all your Game Scenes
Thanks, but it is not what I need. I want other users see my custom resolutions when they update project via SVN.
Good question, +1. Based on the fact that version control detects no changes when I added some custom resolutions, it seems like custom game view sizes might not be stored in the project anymore. If so, it'd probably be necessary to write an editor script to do it.
Answer by TimB · Jul 14, 2015 at 11:56 AM
It looks like this was moved in Unity 5 to the %AppData% folder. I'm guessing so it is shared between projects?
I think it can be found at (on Windows 7 at least): %AppData%\Roaming\Unity\Editor-5.x\Preferences
I have not tried copying it into the ProjectSettings to see if it possibly overrides. I'll respond back if I test it.
Nope, looks like it only reads GameViewSizes.asset from the AppData directory.
I added feedback here: http://feedback.unity3d.com/suggestions/allow-gameviewsizes-dot-asset-override-in-projectsettings-for-unity5
Your answer
Follow this Question
Related Questions
Set Game View Resolution 1 Answer
Game window is broken 3 Answers
Add and Select Game View Resolution Programatically 5 Answers
resolution differences between GameView, and build 1 Answer
Unity Scene View has other Resolution then Game View. 0 Answers