Component Outputs
This node defines the outputs for a custom component.
The Component Outputs node allows a component to send data or signals back to its parent.
The Component Outputs node is the counterpart to Component Inputs. It defines what data or events your component exposes to the outside world. This is how you create custom events like "On Click", "Submit", or return calculated values.
Inputs
Outputs
| Data | Description |
|---|---|
| * | Dynamic inputs corresponding to the defined outputs. Connect internal data or signals here to send them out. |
Outputs
Outputs
| Data | Description |
|---|---|
| * | Dynamic outputs defined in the node inspector. These appear as output ports on the component instance. |
Usage
Creating a Custom Button Event
- Open your custom "MyButton" component.
- Select the Component Outputs node.
- Add an output named
clickedof typeSignal. - Connect the
Clicksignal from an internal Button node to theclickedinput on Component Outputs.
Using the Component
- Place "MyButton" in a parent graph.
- You will see a
clickedoutput signal on the node. - Connect this to a "Navigate" node.
Returning Data
- Add an output
valueof typeString. - Connect an internal Text Input's value to this port.
- The parent component can now read the text value from your component.
Detailed Behavior
- Passthrough: Data flows directly from the internal connection to the external port.
- Signals: Signals are propagated instantly.
Troubleshooting
- No Signal: Ensure the internal logic actually triggers the signal connected to the Component Outputs node.