.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the VisualScriptConstant.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_VisualScriptConstant: VisualScriptConstant ==================== **Inherits:** :ref:`VisualScriptNode` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Gets a contant's value. Member Functions ---------------- +--------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_constant_type` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`get_constant_value` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_constant_type` **(** :ref:`int` type **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_constant_value` **(** :ref:`Variant` value **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- .. _class_VisualScriptConstant_type: - :ref:`int` **type** - The constant's type. .. _class_VisualScriptConstant_value: - :ref:`Variant` **value** - The constant's value. Description ----------- This node returns a constant's value. **Input Ports:** none **Output Ports:** - Data (variant): ``get`` Member Function Description --------------------------- .. _class_VisualScriptConstant_get_constant_type: - :ref:`int` **get_constant_type** **(** **)** const .. _class_VisualScriptConstant_get_constant_value: - :ref:`Variant` **get_constant_value** **(** **)** const .. _class_VisualScriptConstant_set_constant_type: - void **set_constant_type** **(** :ref:`int` type **)** .. _class_VisualScriptConstant_set_constant_value: - void **set_constant_value** **(** :ref:`Variant` value **)**