:github_url: hide .. Generated automatically by doc/tools/make_rst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the VisualScriptNode.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_VisualScriptNode: VisualScriptNode ================ **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Inherited By:** :ref:`VisualScriptBasicTypeConstant`, :ref:`VisualScriptBuiltinFunc`, :ref:`VisualScriptClassConstant`, :ref:`VisualScriptComment`, :ref:`VisualScriptCondition`, :ref:`VisualScriptConstant`, :ref:`VisualScriptConstructor`, :ref:`VisualScriptCustomNode`, :ref:`VisualScriptDeconstruct`, :ref:`VisualScriptEmitSignal`, :ref:`VisualScriptEngineSingleton`, :ref:`VisualScriptExpression`, :ref:`VisualScriptFunction`, :ref:`VisualScriptFunctionCall`, :ref:`VisualScriptGlobalConstant`, :ref:`VisualScriptIndexGet`, :ref:`VisualScriptIndexSet`, :ref:`VisualScriptInputAction`, :ref:`VisualScriptIterator`, :ref:`VisualScriptLists`, :ref:`VisualScriptLocalVar`, :ref:`VisualScriptLocalVarSet`, :ref:`VisualScriptMathConstant`, :ref:`VisualScriptOperator`, :ref:`VisualScriptPreload`, :ref:`VisualScriptPropertyGet`, :ref:`VisualScriptPropertySet`, :ref:`VisualScriptResourcePath`, :ref:`VisualScriptReturn`, :ref:`VisualScriptSceneNode`, :ref:`VisualScriptSceneTree`, :ref:`VisualScriptSelect`, :ref:`VisualScriptSelf`, :ref:`VisualScriptSequence`, :ref:`VisualScriptSubCall`, :ref:`VisualScriptSwitch`, :ref:`VisualScriptTypeCast`, :ref:`VisualScriptVariableGet`, :ref:`VisualScriptVariableSet`, :ref:`VisualScriptWhile`, :ref:`VisualScriptYield`, :ref:`VisualScriptYieldSignal` A node which is part of a :ref:`VisualScript`. Description ----------- A node which is part of a :ref:`VisualScript`. Not to be confused with :ref:`Node`, which is a part of a :ref:`SceneTree`. Methods ------- +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`get_default_input_value` **(** :ref:`int` port_idx **)** |const| | +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`VisualScript` | :ref:`get_visual_script` **(** **)** |const| | +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`ports_changed_notify` **(** **)** | +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_default_input_value` **(** :ref:`int` port_idx, :ref:`Variant` value **)** | +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- .. _class_VisualScriptNode_signal_ports_changed: - **ports_changed** **(** **)** Emitted when the available input/output ports are changed. Method Descriptions ------------------- .. _class_VisualScriptNode_method_get_default_input_value: - :ref:`Variant` **get_default_input_value** **(** :ref:`int` port_idx **)** |const| Returns the default value of a given port. The default value is used when nothing is connected to the port. ---- .. _class_VisualScriptNode_method_get_visual_script: - :ref:`VisualScript` **get_visual_script** **(** **)** |const| Returns the :ref:`VisualScript` instance the node is bound to. ---- .. _class_VisualScriptNode_method_ports_changed_notify: - void **ports_changed_notify** **(** **)** Notify that the node's ports have changed. Usually used in conjunction with :ref:`VisualScriptCustomNode` . ---- .. _class_VisualScriptNode_method_set_default_input_value: - void **set_default_input_value** **(** :ref:`int` port_idx, :ref:`Variant` value **)** Change the default value of a given port. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`