From 413808cdf17c493c1ad464456751b30309689f09 Mon Sep 17 00:00:00 2001 From: Qiuyu ZHANG Date: Mon, 6 May 2024 15:25:58 +0800 Subject: [PATCH] fix: Popup cannot display empty names and items with the same name properly, add HashCode to display them --- Editor/Scripts/Window/PlayableGraphMonitorWindow_Toolbar.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Editor/Scripts/Window/PlayableGraphMonitorWindow_Toolbar.cs b/Editor/Scripts/Window/PlayableGraphMonitorWindow_Toolbar.cs index 1dc0636..9b69f15 100644 --- a/Editor/Scripts/Window/PlayableGraphMonitorWindow_Toolbar.cs +++ b/Editor/Scripts/Window/PlayableGraphMonitorWindow_Toolbar.cs @@ -173,7 +173,8 @@ private string GraphPopupFieldFormatter(PlayableGraph graph) { if (graph.IsValid()) { - return graph.GetEditorName(); + // Popup cannot display empty names and items with the same name properly, add HashCode to display them + return $"{graph.GetEditorName()} <{graph.GetHashCode()}>"; } return "No PlayableGraph"; @@ -349,4 +350,4 @@ private void OnHoverSelectRootNodeMenu(PointerEnterEvent evt) } } } -} \ No newline at end of file +}