class_visualscriptlocalvarset.rst 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/visual_script/doc_classes/VisualScriptLocalVarSet.xml.
  6. .. _class_VisualScriptLocalVarSet:
  7. VisualScriptLocalVarSet
  8. =======================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Changes a local variable's value.
  11. Description
  12. -----------
  13. Changes a local variable's value to the given input. The new value is also provided on an output Data port.
  14. \ **Input Ports:**\
  15. - Sequence
  16. - Data (variant): ``set``\
  17. \ **Output Ports:**\
  18. - Sequence
  19. - Data (variant): ``get``
  20. Properties
  21. ----------
  22. +-----------------------------------------------------+------------------------------------------------------------------+------------------+
  23. | :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` | :ref:`type<class_VisualScriptLocalVarSet_property_type>` | ``0`` |
  24. +-----------------------------------------------------+------------------------------------------------------------------+------------------+
  25. | :ref:`StringName<class_StringName>` | :ref:`var_name<class_VisualScriptLocalVarSet_property_var_name>` | ``&"new_local"`` |
  26. +-----------------------------------------------------+------------------------------------------------------------------+------------------+
  27. Property Descriptions
  28. ---------------------
  29. .. _class_VisualScriptLocalVarSet_property_type:
  30. - :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **type**
  31. +-----------+---------------------+
  32. | *Default* | ``0`` |
  33. +-----------+---------------------+
  34. | *Setter* | set_var_type(value) |
  35. +-----------+---------------------+
  36. | *Getter* | get_var_type() |
  37. +-----------+---------------------+
  38. The local variable's type.
  39. ----
  40. .. _class_VisualScriptLocalVarSet_property_var_name:
  41. - :ref:`StringName<class_StringName>` **var_name**
  42. +-----------+---------------------+
  43. | *Default* | ``&"new_local"`` |
  44. +-----------+---------------------+
  45. | *Setter* | set_var_name(value) |
  46. +-----------+---------------------+
  47. | *Getter* | get_var_name() |
  48. +-----------+---------------------+
  49. The local variable's name.
  50. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  51. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  52. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  53. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  54. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  55. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`