2
0

class_visualscriptconstant.rst 2.8 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/VisualScriptConstant.xml.
  6. .. _class_VisualScriptConstant:
  7. VisualScriptConstant
  8. ====================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Gets a contant's value.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This node returns a constant's value.
  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_VisualScriptConstant_property_type>` | ``0`` |
  26. +-----------------------------------------------------+---------------------------------------------------------+-------+
  27. | :ref:`Variant<class_Variant>` | :ref:`value<class_VisualScriptConstant_property_value>` | |
  28. +-----------------------------------------------------+---------------------------------------------------------+-------+
  29. .. rst-class:: classref-section-separator
  30. ----
  31. .. rst-class:: classref-descriptions-group
  32. Property Descriptions
  33. ---------------------
  34. .. _class_VisualScriptConstant_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_constant_type** **(** :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` value **)**
  39. - :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **get_constant_type** **(** **)**
  40. The constant's type.
  41. .. rst-class:: classref-item-separator
  42. ----
  43. .. _class_VisualScriptConstant_property_value:
  44. .. rst-class:: classref-property
  45. :ref:`Variant<class_Variant>` **value**
  46. .. rst-class:: classref-property-setget
  47. - void **set_constant_value** **(** :ref:`Variant<class_Variant>` value **)**
  48. - :ref:`Variant<class_Variant>` **get_constant_value** **(** **)**
  49. The constant's value.
  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.)`