1.代码块 代码如下(示例): using System.Collections; using System.Collections.Generic; using UnityEngine; public class HScreenSet : MonoBehaviour { private void OnEnable() { Resolution[] resolutions = Screen