class_visualscriptvariableget.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisualScriptVariableGet.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisualScriptVariableGet:
  5. VisualScriptVariableGet
  6. =======================
  7. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Gets a variable's value.
  12. Properties
  13. ----------
  14. +-----------------------------+------------------------------------------------------------------+
  15. | :ref:`String<class_String>` | :ref:`var_name<class_VisualScriptVariableGet_property_var_name>` |
  16. +-----------------------------+------------------------------------------------------------------+
  17. Description
  18. -----------
  19. Returns a variable's value. "Var Name" must be supplied, with an optional type.
  20. **Input Ports:**
  21. none
  22. **Output Ports:**
  23. - Data (variant): ``value``
  24. Property Descriptions
  25. ---------------------
  26. .. _class_VisualScriptVariableGet_property_var_name:
  27. - :ref:`String<class_String>` **var_name**
  28. +----------+---------------------+
  29. | *Setter* | set_variable(value) |
  30. +----------+---------------------+
  31. | *Getter* | get_variable() |
  32. +----------+---------------------+
  33. The variable's name.