private void EnumPopup(SerializedProperty property, Type type, GUIContent label) { EditorGUILayout.IntPopup(property, EditorGUIUtility.TempContent(Enum.GetNames(type)), Enum.GetValues(type) as int[], label, new GUILayoutOption[0]); }