Skip to content

Commit 413808c

Browse files
authored
fix: Popup cannot display empty names and items with the same name properly, add HashCode to display them
1 parent 8e2cf77 commit 413808c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Editor/Scripts/Window/PlayableGraphMonitorWindow_Toolbar.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ private string GraphPopupFieldFormatter(PlayableGraph graph)
173173
{
174174
if (graph.IsValid())
175175
{
176-
return graph.GetEditorName();
176+
// Popup cannot display empty names and items with the same name properly, add HashCode to display them
177+
return $"{graph.GetEditorName()} <{graph.GetHashCode()}>";
177178
}
178179

179180
return "No PlayableGraph";
@@ -349,4 +350,4 @@ private void OnHoverSelectRootNodeMenu(PointerEnterEvent evt)
349350
}
350351
}
351352
}
352-
}
353+
}

0 commit comments

Comments
 (0)