Skip to content

Commit 609c653

Browse files
committed
Display output weight and source output port
1 parent f00fe45 commit 609c653

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Editor/PlayableGraphVisualizer.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,12 @@ public override string ToString()
127127
sb.AppendLine(InfoString("Handle", GetContentTypeShortName()));
128128

129129
var po = (PlayableOutput) content;
130-
sb.AppendLine(InfoString("IsValid", po.IsOutputValid()));
130+
if (po.IsOutputValid())
131+
{
132+
sb.AppendLine(InfoString("IsValid", po.IsOutputValid()));
133+
sb.AppendLine(InfoString("Weight", po.GetWeight()));
134+
sb.AppendLine(InfoString("SourceOutputPort", po.GetSourceOutputPort()));
135+
}
131136

132137
return sb.ToString();
133138
}

0 commit comments

Comments
 (0)