Interface IInputPortBuilder<TData>
Interface for defining an input port that uses a specific generic data type.
Inherited Members
Namespace: Unity.GraphToolkit.Editor
Assembly: Unity.GraphToolkit.Editor.dll
Syntax
public interface IInputPortBuilder<TData> : IInputBasePortBuilder<IInputPortBuilder<TData>>, IPortBuilder<IInputPortBuilder<TData>>
Type Parameters
| Name | Description |
|---|---|
| TData | The data type of the input port. |
Remarks
Use this interface to assign a typed default value to the port.
Methods
WithDefaultValue(TData)
Configures a default value of type TData to the input port.
Declaration
IInputPortBuilder<TData> WithDefaultValue(TData defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| TData | defaultValue | The default value of type |
Returns
| Type | Description |
|---|---|
| IInputPortBuilder<TData> | An input port builder configured with the default value. |