Skip to content

Commit 3578c2d

Browse files
authored
Merge pull request #147 from trueDemetri/managed-reference-output
Possibility to display managed reference by LabelByChildAttribute
2 parents 46c88b5 + 20e3ce8 commit 3578c2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/Editor Toolbox/Editor/Utilities/PropertyUtility.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,9 @@ public static void OverrideLabelByValue(GUIContent label, SerializedProperty pro
428428
case SerializedPropertyType.ObjectReference:
429429
label.text = property.objectReferenceValue ? property.objectReferenceValue.ToString() : "null";
430430
break;
431+
case SerializedPropertyType.ManagedReference:
432+
label.text = property.managedReferenceValue?.ToString() ?? "null";
433+
break;
431434
case SerializedPropertyType.LayerMask:
432435
switch (property.intValue)
433436
{

0 commit comments

Comments
 (0)