Skip to content

Commit ecf7e2d

Browse files
authored
feat: Show PlayableGraph description in the Inspector when no node is selected
1 parent 97930ff commit ecf7e2d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Editor/Scripts/Window/PlayableGraphMonitorWindow_Sidebar.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,12 @@ private void DrawInspector()
8989
_graphView.selection[0] is GraphViewNode node)
9090
{
9191
_nodeDescriptionLabel.text = node.GetNodeDescription();
92-
return;
9392
}
94-
9593
// PlayableGraph description
96-
_nodeDescriptionLabel.text = GetPlayableGraphDescription();
94+
else
95+
{
96+
_nodeDescriptionLabel.text = GetPlayableGraphDescription();
97+
}
9798

9899
// MiniMap
99100
_graphMiniMap.MarkDirtyRepaint();

0 commit comments

Comments
 (0)