mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 21:29:07 +00:00
71 lines
2.7 KiB
ReStructuredText
71 lines
2.7 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the VisualScriptLocalVar.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_VisualScriptLocalVar:
|
|
|
|
VisualScriptLocalVar
|
|
====================
|
|
|
|
**Inherits:** :ref:`VisualScriptNode<class_visualscriptnode>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Gets a local variable's value.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_string>` | :ref:`get_var_name<class_VisualScriptLocalVar_get_var_name>` **(** **)** const |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_var_type<class_VisualScriptLocalVar_get_var_type>` **(** **)** const |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_var_name<class_VisualScriptLocalVar_set_var_name>` **(** :ref:`String<class_string>` name **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_var_type<class_VisualScriptLocalVar_set_var_type>` **(** :ref:`int<class_int>` type **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------+
|
|
|
|
Member Variables
|
|
----------------
|
|
|
|
- :ref:`int<class_int>` **type** - The local variable's type.
|
|
- :ref:`String<class_string>` **var_name** - The local variable's name.
|
|
|
|
Description
|
|
-----------
|
|
|
|
Returns a local variable's value. "Var Name" must be supplied, with an optional type.
|
|
|
|
**Input Ports:**
|
|
|
|
none
|
|
|
|
**Output Ports:**
|
|
|
|
- Data (variant): ``get``
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_VisualScriptLocalVar_get_var_name:
|
|
|
|
- :ref:`String<class_string>` **get_var_name** **(** **)** const
|
|
|
|
.. _class_VisualScriptLocalVar_get_var_type:
|
|
|
|
- :ref:`int<class_int>` **get_var_type** **(** **)** const
|
|
|
|
.. _class_VisualScriptLocalVar_set_var_name:
|
|
|
|
- void **set_var_name** **(** :ref:`String<class_string>` name **)**
|
|
|
|
.. _class_VisualScriptLocalVar_set_var_type:
|
|
|
|
- void **set_var_type** **(** :ref:`int<class_int>` type **)**
|
|
|
|
|