mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
61 lines
1.9 KiB
ReStructuredText
61 lines
1.9 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the VisualScriptVariableGet.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_VisualScriptVariableGet:
|
|
|
|
VisualScriptVariableGet
|
|
=======================
|
|
|
|
**Inherits:** :ref:`VisualScriptNode<class_visualscriptnode>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Gets a variable's value.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+------------------------------+----------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_string>` | :ref:`get_variable<class_VisualScriptVariableGet_get_variable>` **(** **)** const |
|
|
+------------------------------+----------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_variable<class_VisualScriptVariableGet_set_variable>` **(** :ref:`String<class_string>` name **)** |
|
|
+------------------------------+----------------------------------------------------------------------------------------------------------------+
|
|
|
|
Member Variables
|
|
----------------
|
|
|
|
.. _class_VisualScriptVariableGet_var_name:
|
|
|
|
- :ref:`String<class_string>` **var_name** - The variable's name.
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
Returns a variable's value. "Var Name" must be supplied, with an optional type.
|
|
|
|
**Input Ports:**
|
|
|
|
none
|
|
|
|
**Output Ports:**
|
|
|
|
- Data (variant): ``value``
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_VisualScriptVariableGet_get_variable:
|
|
|
|
- :ref:`String<class_string>` **get_variable** **(** **)** const
|
|
|
|
.. _class_VisualScriptVariableGet_set_variable:
|
|
|
|
- void **set_variable** **(** :ref:`String<class_string>` name **)**
|
|
|
|
|