class_visualshadernodeparticlemeshemitter.rst 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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/VisualShaderNodeParticleMeshEmitter.xml.
  6. .. _class_VisualShaderNodeParticleMeshEmitter:
  7. VisualShaderNodeParticleMeshEmitter
  8. ===================================
  9. **Inherits:** :ref:`VisualShaderNodeParticleEmitter<class_VisualShaderNodeParticleEmitter>` **<** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A visual shader node that makes particles emitted in a shape defined by a :ref:`Mesh<class_Mesh>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. :ref:`VisualShaderNodeParticleEmitter<class_VisualShaderNodeParticleEmitter>` that makes the particles emitted in a shape of the assigned :ref:`mesh<class_VisualShaderNodeParticleMeshEmitter_property_mesh>`. It will emit from the mesh's surfaces, either all or only the specified one.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-------------------------+----------------------------------------------------------------------------------------------+----------+
  21. | :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_VisualShaderNodeParticleMeshEmitter_property_mesh>` | |
  22. +-------------------------+----------------------------------------------------------------------------------------------+----------+
  23. | :ref:`int<class_int>` | :ref:`surface_index<class_VisualShaderNodeParticleMeshEmitter_property_surface_index>` | ``0`` |
  24. +-------------------------+----------------------------------------------------------------------------------------------+----------+
  25. | :ref:`bool<class_bool>` | :ref:`use_all_surfaces<class_VisualShaderNodeParticleMeshEmitter_property_use_all_surfaces>` | ``true`` |
  26. +-------------------------+----------------------------------------------------------------------------------------------+----------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Property Descriptions
  31. ---------------------
  32. .. _class_VisualShaderNodeParticleMeshEmitter_property_mesh:
  33. .. rst-class:: classref-property
  34. :ref:`Mesh<class_Mesh>` **mesh**
  35. .. rst-class:: classref-property-setget
  36. - void **set_mesh** **(** :ref:`Mesh<class_Mesh>` value **)**
  37. - :ref:`Mesh<class_Mesh>` **get_mesh** **(** **)**
  38. The :ref:`Mesh<class_Mesh>` that defines emission shape.
  39. .. rst-class:: classref-item-separator
  40. ----
  41. .. _class_VisualShaderNodeParticleMeshEmitter_property_surface_index:
  42. .. rst-class:: classref-property
  43. :ref:`int<class_int>` **surface_index** = ``0``
  44. .. rst-class:: classref-property-setget
  45. - void **set_surface_index** **(** :ref:`int<class_int>` value **)**
  46. - :ref:`int<class_int>` **get_surface_index** **(** **)**
  47. Index of the surface that emits particles. :ref:`use_all_surfaces<class_VisualShaderNodeParticleMeshEmitter_property_use_all_surfaces>` must be ``false`` for this to take effect.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_VisualShaderNodeParticleMeshEmitter_property_use_all_surfaces:
  51. .. rst-class:: classref-property
  52. :ref:`bool<class_bool>` **use_all_surfaces** = ``true``
  53. .. rst-class:: classref-property-setget
  54. - void **set_use_all_surfaces** **(** :ref:`bool<class_bool>` value **)**
  55. - :ref:`bool<class_bool>` **is_use_all_surfaces** **(** **)**
  56. If ``true``, the particles will emit from all surfaces of the mesh.
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  61. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  62. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  63. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`