// Draw the property inside the given rect public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { // Using BeginProperty / EndProperty on the parent property means that // prefab override logic works on the entire property. EditorGUI.BeginProperty(position, label, property); // Draw label position = EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label); var prop = property.FindPropertyRelative("value"); // Draw fields - passs GUIContent.none to each so they are drawn without labels prop.intValue = EditorGUI.MaskField( position, prop.intValue, BulletTeamSettings.GetOrCreateSettings().LayerNames); EditorGUI.EndProperty(); }