class_visualshadernodeparameter.rst 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/VisualShaderNodeParameter.xml.
  6. .. _class_VisualShaderNodeParameter:
  7. VisualShaderNodeParameter
  8. =========================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`VisualShaderNodeBooleanParameter<class_VisualShaderNodeBooleanParameter>`, :ref:`VisualShaderNodeColorParameter<class_VisualShaderNodeColorParameter>`, :ref:`VisualShaderNodeFloatParameter<class_VisualShaderNodeFloatParameter>`, :ref:`VisualShaderNodeIntParameter<class_VisualShaderNodeIntParameter>`, :ref:`VisualShaderNodeTextureParameter<class_VisualShaderNodeTextureParameter>`, :ref:`VisualShaderNodeTransformParameter<class_VisualShaderNodeTransformParameter>`, :ref:`VisualShaderNodeUIntParameter<class_VisualShaderNodeUIntParameter>`, :ref:`VisualShaderNodeVec2Parameter<class_VisualShaderNodeVec2Parameter>`, :ref:`VisualShaderNodeVec3Parameter<class_VisualShaderNodeVec3Parameter>`, :ref:`VisualShaderNodeVec4Parameter<class_VisualShaderNodeVec4Parameter>`
  11. A base type for the parameters within the visual shader graph.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. A parameter represents a variable in the shader which is set externally, i.e. from the :ref:`ShaderMaterial<class_ShaderMaterial>`. Parameters are exposed as properties in the :ref:`ShaderMaterial<class_ShaderMaterial>` and can be assigned from the Inspector or from a script.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +------------------------------------------------------------+--------------------------------------------------------------------------------+--------+
  22. | :ref:`String<class_String>` | :ref:`parameter_name<class_VisualShaderNodeParameter_property_parameter_name>` | ``""`` |
  23. +------------------------------------------------------------+--------------------------------------------------------------------------------+--------+
  24. | :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` | :ref:`qualifier<class_VisualShaderNodeParameter_property_qualifier>` | ``0`` |
  25. +------------------------------------------------------------+--------------------------------------------------------------------------------+--------+
  26. .. rst-class:: classref-section-separator
  27. ----
  28. .. rst-class:: classref-descriptions-group
  29. Enumerations
  30. ------------
  31. .. _enum_VisualShaderNodeParameter_Qualifier:
  32. .. rst-class:: classref-enumeration
  33. enum **Qualifier**:
  34. .. _class_VisualShaderNodeParameter_constant_QUAL_NONE:
  35. .. rst-class:: classref-enumeration-constant
  36. :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **QUAL_NONE** = ``0``
  37. The parameter will be tied to the :ref:`ShaderMaterial<class_ShaderMaterial>` using this shader.
  38. .. _class_VisualShaderNodeParameter_constant_QUAL_GLOBAL:
  39. .. rst-class:: classref-enumeration-constant
  40. :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **QUAL_GLOBAL** = ``1``
  41. The parameter will use a global value, defined in Project Settings.
  42. .. _class_VisualShaderNodeParameter_constant_QUAL_INSTANCE:
  43. .. rst-class:: classref-enumeration-constant
  44. :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **QUAL_INSTANCE** = ``2``
  45. The parameter will be tied to the node with attached :ref:`ShaderMaterial<class_ShaderMaterial>` using this shader.
  46. .. _class_VisualShaderNodeParameter_constant_QUAL_MAX:
  47. .. rst-class:: classref-enumeration-constant
  48. :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **QUAL_MAX** = ``3``
  49. Represents the size of the :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` enum.
  50. .. rst-class:: classref-section-separator
  51. ----
  52. .. rst-class:: classref-descriptions-group
  53. Property Descriptions
  54. ---------------------
  55. .. _class_VisualShaderNodeParameter_property_parameter_name:
  56. .. rst-class:: classref-property
  57. :ref:`String<class_String>` **parameter_name** = ``""``
  58. .. rst-class:: classref-property-setget
  59. - void **set_parameter_name** **(** :ref:`String<class_String>` value **)**
  60. - :ref:`String<class_String>` **get_parameter_name** **(** **)**
  61. Name of the parameter, by which it can be accessed through the :ref:`ShaderMaterial<class_ShaderMaterial>` properties.
  62. .. rst-class:: classref-item-separator
  63. ----
  64. .. _class_VisualShaderNodeParameter_property_qualifier:
  65. .. rst-class:: classref-property
  66. :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **qualifier** = ``0``
  67. .. rst-class:: classref-property-setget
  68. - void **set_qualifier** **(** :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` value **)**
  69. - :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **get_qualifier** **(** **)**
  70. Defines the scope of the parameter.
  71. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  72. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  73. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  74. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  75. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  76. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  77. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`