Skip to content

Commit 2570397

Browse files
committed
Made sure SOC Item references correctly show property overrides
1 parent da1e8e4 commit 2570397

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Scripts/Editor/PropertyDrawers/SOCItemPropertyDrawer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
6666

6767
item = property.objectReferenceValue as ScriptableObject;
6868

69+
EditorGUI.BeginProperty(position, label, property);
6970
DrawCollectionItemDrawer(ref position, item, label,
7071
newItem =>
7172
{
7273
property.objectReferenceValue = newItem;
7374
property.serializedObject.ApplyModifiedProperties();
7475
});
76+
EditorGUI.EndProperty();
7577
}
7678

7779
internal void DrawCollectionItemDrawer(ref Rect position, ScriptableObject collectionItem, GUIContent label,

0 commit comments

Comments
 (0)