protected override bool CustomGUI() { bool _isX = IsX; int result = EditorGUILayout.Popup((IsX ? 0 : 1), new string[] { "X", "Y" }); IsX = (result == 0 ? true : false); return IsX != _isX; }