class_visualscriptglobalconstant.rst 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/VisualScriptGlobalConstant.xml.
  6. .. _class_VisualScriptGlobalConstant:
  7. VisualScriptGlobalConstant
  8. ==========================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. A Visual Script node returning a constant from :ref:`@GlobalScope<class_@GlobalScope>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A Visual Script node returning a constant from :ref:`@GlobalScope<class_@GlobalScope>`.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-----------------------+---------------------------------------------------------------------+-------+
  21. | :ref:`int<class_int>` | :ref:`constant<class_VisualScriptGlobalConstant_property_constant>` | ``0`` |
  22. +-----------------------+---------------------------------------------------------------------+-------+
  23. .. rst-class:: classref-section-separator
  24. ----
  25. .. rst-class:: classref-descriptions-group
  26. Property Descriptions
  27. ---------------------
  28. .. _class_VisualScriptGlobalConstant_property_constant:
  29. .. rst-class:: classref-property
  30. :ref:`int<class_int>` **constant** = ``0``
  31. .. rst-class:: classref-property-setget
  32. - void **set_global_constant** **(** :ref:`int<class_int>` value **)**
  33. - :ref:`int<class_int>` **get_global_constant** **(** **)**
  34. The constant to be used.
  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.)`
  38. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`