유니티 Standalone (독립 실행형 빌드) 해상도 변경이 안될때
*상황
유니티 실행파일을 받아서 실행을 시켰는데 해상도가 설정한 것과 다르게 나왔다
다른 PC로 실행 했을때는 의도한 해상도가 나왔다
(두 PC모두 같은 디스플레이 사이즈)
*Screen 크기에 대한 정보는 레지스트리에 저장된다
[레지스트리편집기] 검색 후
- HKEY_CURRENT_USER\SOFTWARE\[회사명]\[제품명]
여기에 들어가서
Screenmanager Resolution Height
Screenmanager Resolution Width를 수정하면 된다
오른쪽 버튼 클릭 - [수정] 클릭 후
[단위]를 10진수로 바꾼 후,
[값 데이터]에 원하는 너비,높이 값을 넣으면된다
-
나는 Screen.SetResolution 에서 설정한 값이 레지스터에 들어가는지 이번에 첨 알게됫다
끝~
출처
https://forum.unity.com/threads/cant-change-resolution-for-standalone-build.323931/
can't change resolution for standalone build
I posted this on Unity answers and didn't get any answer, so I'm posting it here. Ok, I just updated to Unity 5, and I've been trying to figure this...
forum.unity.com
https://cinema-suite.com/unity-tip-running-a-custom-fullscreen-resolution/
How to set a Custom Unity Fullscreen Resolution
Learn how you can run a Unity fullscreen resolution when you build your game, and ensure that the resolution does not reset with every new session.
transforminteractive.com