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; } }
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); }