class_visualscriptlocalvar.rst 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisualScriptLocalVar.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisualScriptLocalVar:
  5. VisualScriptLocalVar
  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 local variable's value.
  12. Properties
  13. ----------
  14. +-----------------------------------------------------+---------------------------------------------------------------+
  15. | :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` | :ref:`type<class_VisualScriptLocalVar_property_type>` |
  16. +-----------------------------------------------------+---------------------------------------------------------------+
  17. | :ref:`String<class_String>` | :ref:`var_name<class_VisualScriptLocalVar_property_var_name>` |
  18. +-----------------------------------------------------+---------------------------------------------------------------+
  19. Description
  20. -----------
  21. Returns a local variable's value. "Var Name" must be supplied, with an optional type.
  22. **Input Ports:**
  23. none
  24. **Output Ports:**
  25. - Data (variant): ``get``
  26. Property Descriptions
  27. ---------------------
  28. .. _class_VisualScriptLocalVar_property_type:
  29. - :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **type**
  30. +----------+---------------------+
  31. | *Setter* | set_var_type(value) |
  32. +----------+---------------------+
  33. | *Getter* | get_var_type() |
  34. +----------+---------------------+
  35. The local variable's type.
  36. .. _class_VisualScriptLocalVar_property_var_name:
  37. - :ref:`String<class_String>` **var_name**
  38. +----------+---------------------+
  39. | *Setter* | set_var_name(value) |
  40. +----------+---------------------+
  41. | *Getter* | get_var_name() |
  42. +----------+---------------------+
  43. The local variable's name.