Beispiel #1
0
        //设置分辨率
        public void SetResolutionData()
        {
            List <Dropdown.OptionData> dataList = new List <Dropdown.OptionData>();
            List <string> supportList           = ImageSetting.GetSupportResolutionList();

            foreach (string s in supportList)
            {
                Dropdown.OptionData data = new Dropdown.OptionData();
                data.text = s;
                dataList.Add(data);
            }
            if (notSupportFullSceen)
            {
                notSupportFullSceen.enabled = false;
            }
            initingVedioData        = true;
            Resolution.options      = dataList;
            Resolution.value        = ImageSetting.GetResolutionIndex(ImageSetting.GetData().currResolution);
            FullScreen.isOn         = ImageSetting.GetData().currWindowType == WindowType.FullScreen;
            Resolution.interactable = !FullScreen.isOn;
            initingVedioData        = false;
        }