using System.Collections; using System.Collections.Generic; using UnityEngine; public class globaFBL : MonoBehaviour { // Start is called before the first frame update void Start() { int screenWidth = Screen.width; int screenHeight = Screen.height; Debug.Log("Screen Resolution: " + screenWidth + "x" + screenHeight); Resolution deviceResolution = Screen.currentResolution; Debug.Log("设备(显示器)的分辨率: " + deviceResolution.width + " x " + deviceResolution.height); } // Update is called once per frame void Update() { } }