NG_/Assets/Scripts/UI/全局/globaFBL.cs
2024-12-13 19:40:05 +08:00

23 lines
623 B
C#

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()
{
}
}