.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.

.. _class_VisualScriptNode:

VisualScriptNode
================

**Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`

**Inherited By:** :ref:`VisualScriptDeconstruct<class_visualscriptdeconstruct>`, :ref:`VisualScriptLocalVar<class_visualscriptlocalvar>`, :ref:`VisualScriptSceneNode<class_visualscriptscenenode>`, :ref:`VisualScriptBasicTypeConstant<class_visualscriptbasictypeconstant>`, :ref:`VisualScriptSequence<class_visualscriptsequence>`, :ref:`VisualScriptVariableSet<class_visualscriptvariableset>`, :ref:`VisualScriptConstant<class_visualscriptconstant>`, :ref:`VisualScriptReturn<class_visualscriptreturn>`, :ref:`VisualScriptSceneTree<class_visualscriptscenetree>`, :ref:`VisualScriptSelf<class_visualscriptself>`, :ref:`VisualScriptIndexSet<class_visualscriptindexset>`, :ref:`VisualScriptResourcePath<class_visualscriptresourcepath>`, :ref:`VisualScriptPropertyGet<class_visualscriptpropertyget>`, :ref:`VisualScriptVariableGet<class_visualscriptvariableget>`, :ref:`VisualScriptInputAction<class_visualscriptinputaction>`, :ref:`VisualScriptEmitSignal<class_visualscriptemitsignal>`, :ref:`VisualScriptTypeCast<class_visualscripttypecast>`, :ref:`VisualScriptGlobalConstant<class_visualscriptglobalconstant>`, :ref:`VisualScriptFunctionCall<class_visualscriptfunctioncall>`, :ref:`VisualScriptYield<class_visualscriptyield>`, :ref:`VisualScriptSwitch<class_visualscriptswitch>`, :ref:`VisualScriptBuiltinFunc<class_visualscriptbuiltinfunc>`, :ref:`VisualScriptClassConstant<class_visualscriptclassconstant>`, :ref:`VisualScriptEngineSingleton<class_visualscriptenginesingleton>`, :ref:`VisualScriptCondition<class_visualscriptcondition>`, :ref:`VisualScriptOperator<class_visualscriptoperator>`, :ref:`VisualScriptIterator<class_visualscriptiterator>`, :ref:`VisualScriptCustomNode<class_visualscriptcustomnode>`, :ref:`VisualScriptSubCall<class_visualscriptsubcall>`, :ref:`VisualScriptYieldSignal<class_visualscriptyieldsignal>`, :ref:`VisualScriptIndexGet<class_visualscriptindexget>`, :ref:`VisualScriptLocalVarSet<class_visualscriptlocalvarset>`, :ref:`VisualScriptWhile<class_visualscriptwhile>`, :ref:`VisualScriptConstructor<class_visualscriptconstructor>`, :ref:`VisualScriptMathConstant<class_visualscriptmathconstant>`, :ref:`VisualScriptComment<class_visualscriptcomment>`, :ref:`VisualScriptExpression<class_visualscriptexpression>`, :ref:`VisualScriptPropertySet<class_visualscriptpropertyset>`, :ref:`VisualScriptFunction<class_visualscriptfunction>`, :ref:`VisualScriptPreload<class_visualscriptpreload>`, :ref:`VisualScriptSelect<class_visualscriptselect>`

**Category:** Core

Brief Description
-----------------



Member Functions
----------------

+------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Variant<class_variant>`            | :ref:`get_default_input_value<class_VisualScriptNode_get_default_input_value>`  **(** :ref:`int<class_int>` port_idx  **)** const                                |
+------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`VisualScript<class_visualscript>`  | :ref:`get_visual_script<class_VisualScriptNode_get_visual_script>`  **(** **)** const                                                                            |
+------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void                                     | :ref:`set_default_input_value<class_VisualScriptNode_set_default_input_value>`  **(** :ref:`int<class_int>` port_idx, :ref:`Variant<class_variant>` value  **)** |
+------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Signals
-------

-  **ports_changed**  **(** **)**

Member Variables
----------------

- :ref:`Array<class_array>` **_default_input_values**

Member Function Description
---------------------------

.. _class_VisualScriptNode_get_default_input_value:

- :ref:`Variant<class_variant>`  **get_default_input_value**  **(** :ref:`int<class_int>` port_idx  **)** const

.. _class_VisualScriptNode_get_visual_script:

- :ref:`VisualScript<class_visualscript>`  **get_visual_script**  **(** **)** const

.. _class_VisualScriptNode_set_default_input_value:

- void  **set_default_input_value**  **(** :ref:`int<class_int>` port_idx, :ref:`Variant<class_variant>` value  **)**


