Skip to content

Commit

Permalink
fix: Popup cannot display empty names and items with the same name pr…
Browse files Browse the repository at this point in the history
…operly, add HashCode to display them
  • Loading branch information
SolarianZ authored May 6, 2024
1 parent 8e2cf77 commit 413808c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Editor/Scripts/Window/PlayableGraphMonitorWindow_Toolbar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -349,4 +350,4 @@ private void OnHoverSelectRootNodeMenu(PointerEnterEvent evt)
}
}
}
}
}

0 comments on commit 413808c

Please sign in to comment.