유니티 precull
![[유니티] 해상도 고정 & 빈 공간 처리](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fn1q4V%2FbtrRuuWgVt8%2F0aT5Q3zIktkRMnTLW8NtG0%2Fimg.png)
[유니티] 해상도 고정 & 빈 공간 처리
1. 해상도 고정 원하는 해상도는 아래 코드에 width, height에 놓으면 된다. void Awake() { Screen.sleepTimeout = SleepTimeout.NeverSleep; int width = 1080; int height = 1920; float res = (float)width / height; int deviceWidth = Screen.width; int deviceHeight = Screen.height; float deviceRes = (float)deviceWidth / deviceHeight; // SetResolution 함수 제대로 사용하기 Screen.SetResolution(width, (int)(((float)deviceHeight / deviceWidt..