乐奇 Rokid 开放社区
unity获取设备分辨率
unity获取设备分辨率
设备分辨率
- using UnityEngine;
- using System.Collections;
- public class ExampleClass : MonoBehaviour {
- void Start() {
- Resolution[] resolutions = Screen.resolutions;
- //foreach (Resolution res in resolutions) {
- //}
- Screen.SetResolution(resolutions[0].width, resolutions[0].height, true);
- }
- }
6431
0
0
- 0
扫一扫分享内容
分享
回到
顶部
顶部



所有评论(0)