1.8.1: Fixed issue with certain drawers using EditorGUI.PropertyField, which would invoke a second draw with the same attribute

This commit is contained in:
Anders Ejlersen 2023-04-21 18:44:44 +02:00
parent eb19150d98
commit b189ec8b97
8 changed files with 21 additions and 14 deletions

View file

@ -526,7 +526,7 @@ namespace Module.Inspector.Editor
case SerializedPropertyType.BoundsInt:
return property.boundsIntValue.ToString();
case SerializedPropertyType.ManagedReference:
return property.objectReferenceValue != null ? property.objectReferenceValue.ToString() : "null";
return property.managedReferenceValue != null ? property.managedReferenceValue.ToString() : "null";
}
return "Unable to draw value as string";