본문 바로가기
개발/C#

유니티 C# 해상도 설정 SetResolution 간단 사용법

by SPNK 2022. 7. 6.
반응형
  • 코드 작성
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Example : MonoBehaviour
{
    public int width = 1080; //가로

    public int height = 1920; //세로

    private void Start()
    {
        Screen.SetResolution(width, height, true);
    }
}
반응형

댓글