Пример #1
0
        public void LoadQualityDatabase()
        {
            _qualityDatabase = ISObjectEditor._qualityDatabase;

            _options = new string[_qualityDatabase.Count];
            for (int i = 0; i < _qualityDatabase.Count; i++)
            {
                _options[i] = _qualityDatabase.Get(i).Name;
            }
        }
Пример #2
0
        public void DisplayQuality()
        {
            LoadQualityDatabase();
            int itemIndex = 0;

            if (_quality != null)
            {
                itemIndex = _qualityDatabase.GetIndex(_quality.Name);
            }

            if (itemIndex == -1)
            {
                itemIndex = 0;
            }
            _qualitySelectedIndex = EditorGUILayout.Popup("Quality", itemIndex, _options);
            _quality = _qualityDatabase.Get(SelectedQualityIndex);
        }