public void Draw() { var prevValue = _value; _value = EditorGUILayout.EnumPopup(_text, _value); if (!Equals(prevValue, _value)) { OnChangedSelection.InvokeSafe(); } }
public void Draw() { var prevIndex = _index; _index = EditorGUILayout.Popup(_text, _index, _options); if (!Equals(prevIndex, _index)) { OnChangedSelection.InvokeSafe(); } }