Node.IPortDefinitionContext
Interface that provides methods to define input and output ports during Node.OnDefinePorts execution.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Interface
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public interface Node.IPortDefinitionContext
Remarks
Use this interface within Node.OnDefinePorts to declare the ports a node exposes. Ports define how the node connects to other nodes by specifying inputs and outputs.
Methods
Method | Description |
|---|---|
| AddInputPort | Adds a new input port. |
| AddOutputPort | Adds a new output port with the specified name. |