Screen (1) 썸네일형 리스트형 23.10.25 Unity : 해상도 가져오기 유니티의 해상도를 가져오는 코드는 간단하다. using UnityEngine; public class ResolutionManager : MonoBehaviour { void Start() { // 현재 화면 해상도를 가져오기 int screenWidth = Screen.width; int screenHeight = Screen.height; // 결과 출력 Debug.Log("화면 해상도: " + screenWidth + "x" + screenHeight); } } 이 외에도 현재 사용하고 있는 모니터의 해상도를 가져오는 코드는 아래와 같다. using UnityEngine; public class ResolutionManager : MonoBehaviour { void .. 이전 1 다음