mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-08 10:10:54 +03:00
63 lines
2.8 KiB
ReStructuredText
63 lines
2.8 KiB
ReStructuredText
.. 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/<name>/doc_classes.
|
|
|
|
.. _class_VisualScriptConstant:
|
|
|
|
VisualScriptConstant
|
|
====================
|
|
|
|
**Inherits:** :ref:`VisualScriptNode<class_visualscriptnode>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
A Visual Script node which returns a constant value.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_constant_type<class_VisualScriptConstant_get_constant_type>` **(** **)** const |
|
|
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Variant<class_variant>` | :ref:`get_constant_value<class_VisualScriptConstant_get_constant_value>` **(** **)** const |
|
|
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_constant_type<class_VisualScriptConstant_set_constant_type>` **(** :ref:`int<class_int>` type **)** |
|
|
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_constant_value<class_VisualScriptConstant_set_constant_value>` **(** :ref:`Variant<class_variant>` value **)** |
|
|
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Member Variables
|
|
----------------
|
|
|
|
- :ref:`int<class_int>` **type** - The constant's type.
|
|
- :ref:`Variant<class_variant>` **value** - The constant's value.
|
|
|
|
Description
|
|
-----------
|
|
|
|
A Visual Script node which returns the specified constant value.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_VisualScriptConstant_get_constant_type:
|
|
|
|
- :ref:`int<class_int>` **get_constant_type** **(** **)** const
|
|
|
|
.. _class_VisualScriptConstant_get_constant_value:
|
|
|
|
- :ref:`Variant<class_variant>` **get_constant_value** **(** **)** const
|
|
|
|
.. _class_VisualScriptConstant_set_constant_type:
|
|
|
|
- void **set_constant_type** **(** :ref:`int<class_int>` type **)**
|
|
|
|
.. _class_VisualScriptConstant_set_constant_value:
|
|
|
|
- void **set_constant_value** **(** :ref:`Variant<class_variant>` value **)**
|
|
|
|
|