VisualScriptNode

Inherits: Resource < Reference < Object

Inherited By: VisualScriptLocalVar, VisualScriptSceneNode, VisualScriptBasicTypeConstant, VisualScriptSequence, VisualScriptVariableSet, VisualScriptSelf, VisualScriptConstant, VisualScriptReturn, VisualScriptSceneTree, VisualScriptIndexSet, VisualScriptResourcePath, VisualScriptPropertyGet, VisualScriptVariableGet, VisualScriptInputAction, VisualScriptEmitSignal, VisualScriptDeconstruct, VisualScriptTypeCast, VisualScriptGlobalConstant, VisualScriptFunctionCall, VisualScriptSwitch, VisualScriptBuiltinFunc, VisualScriptClassConstant, VisualScriptEngineSingleton, VisualScriptCondition, VisualScriptOperator, VisualScriptIterator, VisualScriptCustomNode, VisualScriptYield, VisualScriptSubCall, VisualScriptYieldSignal, VisualScriptIndexGet, VisualScriptLocalVarSet, VisualScriptWhile, VisualScriptConstructor, VisualScriptMathConstant, VisualScriptComment, VisualScriptExpression, VisualScriptPropertySet, VisualScriptFunction, VisualScriptPreload, VisualScriptSelect

Category: Core

Brief Description

A node which is part of a VisualScript.

Methods

Variant get_default_input_value ( int port_idx ) const
VisualScript get_visual_script ( ) const
void ports_changed_notify ( )
void set_default_input_value ( int port_idx, Variant value )

Signals

  • ports_changed ( )

Emitted when the available input/output ports are changed.

Description

A node which is part of a VisualScript. Not to be confused with Node, which is a part of a SceneTree.

Method Descriptions

  • Variant get_default_input_value ( int port_idx ) const

Returns the default value of a given port. The default value is used when nothing is connected to the port.

Returns the VisualScript instance the node is bound to.

  • void ports_changed_notify ( )

Notify that the node’s ports have changed. Usually used in conjunction with VisualScriptCustomNode .

  • void set_default_input_value ( int port_idx, Variant value )

Change the default value of a given port.