Skip to content

Commit 7d3e88d

Browse files
committed
Fixed Int vector drawer display in nodes
1 parent 0699108 commit 7d3e88d

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Assets/Examples/DefaultNodes/Nodes/DrawerFieldTestNode.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ public class DrawerFieldTestNode : BaseNode
2020
[Input(name = "Float"), ShowAsDrawer]
2121
public float floatInput;
2222

23+
[Input(name = "Vector 3 Int"), ShowAsDrawer]
24+
public Vector3Int vector3Int;
25+
26+
[Input(name = "Vector 2 Int"), ShowAsDrawer]
27+
public Vector2Int vector2Int;
28+
2329
[Input(name = "Int"), ShowAsDrawer]
2430
public int intInput;
2531

Assets/com.alelievr.NodeGraphProcessor/Editor/Resources/GraphProcessorStyles/BaseNodeView.uss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ ParameterNodeView #controls EnumField > VisualElement > VisualElement {
130130

131131
#input-container > .port-input-element > Vector4Field Label,
132132
#input-container > .port-input-element > Vector3Field Label,
133-
#input-container > .port-input-element > Vector2Field Label {
133+
#input-container > .port-input-element > Vector2Field Label,
134+
#input-container > .port-input-element > Vector3IntField Label,
135+
#input-container > .port-input-element > Vector2IntField Label {
134136
font-size: 8px;
135137
min-width: 8px;
136138
flex-basis: 8px;
@@ -140,11 +142,13 @@ ParameterNodeView #controls EnumField > VisualElement > VisualElement {
140142

141143
#input-container > .port-input-element > Vector4Field FloatInput,
142144
#input-container > .port-input-element > Vector3Field FloatInput,
143-
#input-container > .port-input-element > Vector2Field FloatInput {
145+
#input-container > .port-input-element > Vector2Field FloatInput,
146+
#input-container > .port-input-element > Vector3IntField IntegerInput,
147+
#input-container > .port-input-element > Vector2IntField IntegerInput {
144148
min-width: 28px;
145149
}
146150

147-
#input-container > .port-input-element > Vector2Field .unity-composite-field__field-spacer {
151+
#input-container > .port-input-element > * .unity-composite-field__field-spacer {
148152
flex-grow: 0.01;
149153
}
150154

0 commit comments

Comments
 (0)