예제 #1
0
        protected void Awake()
        {
            List <string> options = new List <string>
            {
                RuntimeData.FormattedText(9912),
                RuntimeData.FormattedText(68421)
            };

            m_fullScreenDropdown.ClearOptions();
            m_fullScreenDropdown.AddOptions(options);
            m_fullScreenDropdown.RefreshShownValue();
            List <string>       list           = new List <string>();
            List <QualityAsset> qualityPresets = QualityManager.GetQualityPresets();

            for (int i = 0; i < qualityPresets.Count; i++)
            {
                QualityAsset val   = qualityPresets[i];
                string[]     array = val.get_name().Split(new char[1]
                {
                    '_'
                });
                string item = (array.Length != 0) ? array[array.Length - 1] : val.get_name();
                list.Add(item);
            }
            m_graphicPresetDropdown.ClearOptions();
            m_graphicPresetDropdown.AddOptions(list);
            m_graphicPresetDropdown.RefreshShownValue();
        }
예제 #2
0
 private void OnQualityChanged(QualityAsset current)
 {
     UpdateBlurActiveState();
 }