Parameter | Description |
---|---|
portName | The unique identifier of the output port. |
IOutputPortBuilder An IOutputPortBuilder to further configure the output port.
Adds a new output port with the specified name.
portName
is used to identify the port. It must be unique among output ports on the node. This name is used as the ID when calling GetOutputPortByName.
If IPortBuilder_1.WithDisplayName is not used, this name is also used as the port's display label.
Warning: Changing a port's name will break any existing connections, as the name is used as the port's unique ID.
Use the returned builder to configure port properties and then call IPortBuilder_1.Build to create the port.
var port = context.AddOutputPort("myOutput") .WithDisplayName("My Output Port") .WithDataType(typeof(float)) .WithConnectorUI(PortConnectorUI.Arrowhead) .Build();
Parameter | Description |
---|---|
portName | The unique identifier of the output port. |
IOutputPortBuilder<T> An IOutputPortBuilder_1 to further configure the typed output port.
Adds a new typed output port with the specified name.
portName
is used to identify the port. It must be unique among output ports on the node. This name is used as the ID when calling GetOutputPortByName.
If IPortBuilder_1.WithDisplayName is not used, this name is also used as the port's display label.
Warning: Changing a port's name will break any existing connections, as the name is used as the port's unique ID.
Use the returned builder to configure port properties and then call IPortBuilder_1.Build to create the port.
var port = context.AddOutputPort<bool>("boolOutput") .WithDisplayName("Boolean Output") .Build();