private void RemoveFunctionFunctionality() { GUILayout.BeginHorizontal(); { GUILayout.Space(_defaultSpacing); { if (GUILayout.Button("Remove function", GUILayout.Width(150))) { if (_selectedPopup < 0) { Debug.LogError("@Editor exception - Could dropdown value not assigned"); return; } _self.RemoveFunction(_functionNames[_selectedPopup]); if (FunctionRemoved != null) { FunctionRemoved(); } } _selectedPopup = EditorGUILayout.IntPopup(_selectedPopup, _functionNames, _functionIndexes); } GUILayout.Space(_defaultSpacing); } GUILayout.EndHorizontal(); }