Windows/Mac分辨率選擇界面
預設設定下,會在遊戲運作後會顯示一個選擇分辨率的對話框。
如果想要去掉的話,可以選擇”File -> Build Settings -> Player Settings -> Resolution and Presentation”,将”Display Resolution Dialog”選成”Disabled”。
設定固定分辨率
在Main Camera中加入一個腳本:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ScreenSet : MonoBehaviour {
// Use this for initialization
void Start () {
// Set screen resolution to 640x960, non-fullscreen
Screen.SetResolution(, , false);
}
}