Skip to content

Commit

Permalink
Enables Port Type Override
Browse files Browse the repository at this point in the history
When Constructing a NodePort, check the PortTypeOverrideAttribute to change the ValueType of the Port.
  • Loading branch information
guizix authored Jun 29, 2023
1 parent 111378d commit 556547b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Scripts/NodePort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public NodePort(FieldInfo fieldInfo) {
_connectionType = (attribs[i] as Node.OutputAttribute).connectionType;
_typeConstraint = (attribs[i] as Node.OutputAttribute).typeConstraint;
}
// Override ValueType of the Port
if(attribs[i] is PortTypeOverrideAttribute) {
ValueType = (attribs[i] as PortTypeOverrideAttribute).type;
}
}
}

Expand Down

0 comments on commit 556547b

Please sign in to comment.