class_visualscriptlocalvar.rst 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/modules/visual_script/doc_classes/VisualScriptLocalVar.xml.
  6. .. _class_VisualScriptLocalVar:
  7. VisualScriptLocalVar
  8. ====================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Gets a local variable's value.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Returns a local variable's value. "Var Name" must be supplied, with an optional type.
  15. \ **Input Ports:**\
  16. none
  17. \ **Output Ports:**\
  18. - Data (variant): ``get``
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +-----------------------------------------------------+---------------------------------------------------------------+-----------------+
  25. | :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` | :ref:`type<class_VisualScriptLocalVar_property_type>` | ``0`` |
  26. +-----------------------------------------------------+---------------------------------------------------------------+-----------------+
  27. | :ref:`String<class_String>` | :ref:`var_name<class_VisualScriptLocalVar_property_var_name>` | ``"new_local"`` |
  28. +-----------------------------------------------------+---------------------------------------------------------------+-----------------+
  29. .. rst-class:: classref-section-separator
  30. ----
  31. .. rst-class:: classref-descriptions-group
  32. Property Descriptions
  33. ---------------------
  34. .. _class_VisualScriptLocalVar_property_type:
  35. .. rst-class:: classref-property
  36. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **type** = ``0``
  37. .. rst-class:: classref-property-setget
  38. - void **set_var_type** **(** :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` value **)**
  39. - :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **get_var_type** **(** **)**
  40. The local variable's type.
  41. .. rst-class:: classref-item-separator
  42. ----
  43. .. _class_VisualScriptLocalVar_property_var_name:
  44. .. rst-class:: classref-property
  45. :ref:`String<class_String>` **var_name** = ``"new_local"``
  46. .. rst-class:: classref-property-setget
  47. - void **set_var_name** **(** :ref:`String<class_String>` value **)**
  48. - :ref:`String<class_String>` **get_var_name** **(** **)**
  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. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`