class_visualscriptvariableset.rst 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the VisualScriptVariableSet.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualScriptVariableSet:
  6. VisualScriptVariableSet
  7. =======================
  8. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Changes a variable's value.
  10. Description
  11. -----------
  12. Changes a variable's value to the given input.
  13. **Input Ports:**
  14. - Sequence
  15. - Data (variant): ``set``
  16. **Output Ports:**
  17. - Sequence
  18. Properties
  19. ----------
  20. +-----------------------------+------------------------------------------------------------------+--------+
  21. | :ref:`String<class_String>` | :ref:`var_name<class_VisualScriptVariableSet_property_var_name>` | ``""`` |
  22. +-----------------------------+------------------------------------------------------------------+--------+
  23. Property Descriptions
  24. ---------------------
  25. .. _class_VisualScriptVariableSet_property_var_name:
  26. - :ref:`String<class_String>` **var_name**
  27. +-----------+---------------------+
  28. | *Default* | ``""`` |
  29. +-----------+---------------------+
  30. | *Setter* | set_variable(value) |
  31. +-----------+---------------------+
  32. | *Getter* | get_variable() |
  33. +-----------+---------------------+
  34. The variable's name.
  35. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  36. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  37. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`