Interface IOutputPortBuilder
Interface for defining an output port.
Inherited Members
Namespace: Unity.GraphToolkit.Editor
Assembly: Unity.GraphToolkit.Editor.dll
Syntax
public interface IOutputPortBuilder : IPortBuilder<IOutputPortBuilder>
Remarks
Use this interface to create an output port before you assign its data type. To assign a data type, call WithDataType(Type) or WithDataType<TData>().
Methods
WithDataType(Type)
Configures the data type of the output port.
Declaration
IOutputPortBuilder WithDataType(Type portType)
Parameters
Type | Name | Description |
---|---|---|
Type | portType | The data type of the port. |
Returns
Type | Description |
---|---|
IOutputPortBuilder | An output port builder with the specified data type. |
WithDataType<TData>()
Configures the generic data type TData
of the output port.
Declaration
IOutputPortBuilder<TData> WithDataType<TData>()
Returns
Type | Description |
---|---|
IOutputPortBuilder<TData> | An output port builder with the specified data type. |
Type Parameters
Name | Description |
---|---|
TData | The data type of the output port. |