output
Decorator that marks a property as an output port for custom nodes.
| Type | Name | Interface Description |
|---|---|---|
| Functions | output(type?: string): (target: any, key: string) => any | • Function: Decorator that marks a property as an output port for custom nodes. Output ports allow data to flow from this node to other nodes in a visual scripting graph. |
Example
@customNode()
export class StringConcatNode extends BasicScriptNode {
@input()
public stringA: string = "";
@input()
public stringB: string = "";
@output()
public concatenated: string = "";
}