using UnityEngine; using System.Collections; using UnityEngine.Events; using UnityEngine.EventSystems; using System.Collections.Generic; using UnityEngine .UI ; public class DistrictBgEvent { //门户小界面按钮功能 private EventTrigger m_eventTrigger; public st
描述: 1 个游戏对象,上面有 4 个组件, 如图: 脚本 Test_01 的内容,如下: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test_01 : MonoBehaviour { public List<Component> componentsList = new List<Component>(); // Use this for
只允许竖屏: Portrait √ Portrait Upside Down √ Landscape Right × Landscape Left × 只允许横屏: Portrait × Portrait Upside Down × Landscape Right √ Landscape Left √ 代码动态设置屏幕旋转: private void set