Skip to content

Commit b5cee89

Browse files
julienamsellemEvergreen
authored andcommitted
[VFX] Fixed output property wire anchor badly placed (and invisible)
Jira: https://jira.unity3d.com/browse/UUM-72960 Steps to reproduce: 1. Create a new Visual Effects subgraph operator 2. Open it in VFX window 3. Notice output property link is anchored on the right of the node Actual results: Output property wire is anchored on the right when super collapse Expected results: Output property wire is anchored on the left when super collapsed (like when it's expanded) ![image (6)](https://media.github.cds.internal.unity3d.com/user/4003/files/d5baf17c-5ce1-47f6-80e2-e21d6eb4fea4)
1 parent e6840c6 commit b5cee89

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Packages/com.unity.visualeffectgraph/Editor/GraphView/Elements/VFXParameterUI.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@ protected override void SelfChange()
152152
RemoveFromClassList("exposed");
153153
}
154154

155+
if (controller.parentController.isOutput)
156+
{
157+
AddToClassList("output");
158+
}
159+
else
160+
{
161+
RemoveFromClassList("output");
162+
}
163+
155164
m_Label.parent.tooltip = controller.parentController.model.tooltip;
156165
}
157166

Packages/com.unity.visualeffectgraph/Editor/UIResources/uss/VFXParameter.uss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ VFXParameterUI.node.superCollapsed > #node-border
5656
flex-direction: row;
5757
}
5858

59+
VFXParameterUI.node.superCollapsed.output > #node-border
60+
{
61+
flex-direction: row-reverse;
62+
}
63+
5964
VFXParameterUI.node.superCollapsed > #selection-border
6065
{
6166
border-radius: 12px;
@@ -71,6 +76,12 @@ VFXParameterUI.node.superCollapsed > #node-border > #title
7176
margin-right: 16px;
7277
}
7378

79+
VFXParameterUI.node.superCollapsed.output > #node-border > #title
80+
{
81+
margin-left: 16px;
82+
margin-right: 0;
83+
}
84+
7485
VFXParameterUI.node.superCollapsed > #node-border > #contents > #top > #output
7586
{
7687
justify-content:space-around;

0 commit comments

Comments
 (0)