Skip to content

Commit bd71fa6

Browse files
committed
fix: Fixed GUIContent null error when using GenericObjectDrawer.ObjectField with a non-generic UnityEngine.Object instance
1 parent b819baf commit bd71fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/Drawers/GenericObjectDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static Object ObjectField(Rect rect, GUIContent label, Object currentTarg
4848
{
4949
return objType.IsGenericType
5050
? EditorGUIHelper.GenericObjectField(rect, label, currentTarget, objType, allowSceneObjects)
51-
: EditorGUI.ObjectField(rect, label, currentTarget, objType, allowSceneObjects);
51+
: EditorGUI.ObjectField(rect, label ?? GUIContent.none, currentTarget, objType, allowSceneObjects);
5252
}
5353

5454
/// <summary>

0 commit comments

Comments
 (0)