W3cubDocs

/Godot 3.0

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, VisualScriptYield, VisualScriptSwitch, VisualScriptBuiltinFunc, VisualScriptClassConstant, VisualScriptEngineSingleton, VisualScriptCondition, VisualScriptOperator, VisualScriptIterator, VisualScriptCustomNode, 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.

Member Functions

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.

Member Function Description

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.

VisualScript get_visual_script ( ) const

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.

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_visualscriptnode.html