class_visualscriptvariableget.rst 1.5 KB

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