class_visualscriptconstant.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisualScriptConstant.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisualScriptConstant:
  5. VisualScriptConstant
  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 contant's value.
  12. Properties
  13. ----------
  14. +-----------------------------------------------------+---------------------------------------------------------+
  15. | :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` | :ref:`type<class_VisualScriptConstant_property_type>` |
  16. +-----------------------------------------------------+---------------------------------------------------------+
  17. | :ref:`Variant<class_Variant>` | :ref:`value<class_VisualScriptConstant_property_value>` |
  18. +-----------------------------------------------------+---------------------------------------------------------+
  19. Description
  20. -----------
  21. This node returns a constant's value.
  22. **Input Ports:**
  23. none
  24. **Output Ports:**
  25. - Data (variant): ``get``
  26. Property Descriptions
  27. ---------------------
  28. .. _class_VisualScriptConstant_property_type:
  29. - :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **type**
  30. +----------+--------------------------+
  31. | *Setter* | set_constant_type(value) |
  32. +----------+--------------------------+
  33. | *Getter* | get_constant_type() |
  34. +----------+--------------------------+
  35. The constant's type.
  36. .. _class_VisualScriptConstant_property_value:
  37. - :ref:`Variant<class_Variant>` **value**
  38. +----------+---------------------------+
  39. | *Setter* | set_constant_value(value) |
  40. +----------+---------------------------+
  41. | *Getter* | get_constant_value() |
  42. +----------+---------------------------+
  43. The constant's value.