unity查询当前屏幕分辨率

	void Start () {

            print(Screen.width + "x" + Screen.height); //打印当前屏幕尺寸
        
        // Screen.SetResolution("1920", "1080", true); // 设置分辨率为1920*1080

    }

你可能感兴趣的:(unity,Unity,游戏,开发,实战,pdf,c#)