class_visualshadernodeparticleemit.rst 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/VisualShaderNodeParticleEmit.xml.
  6. .. _class_VisualShaderNodeParticleEmit:
  7. VisualShaderNodeParticleEmit
  8. ============================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A visual shader node that forces to emit a particle from a sub-emitter.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This node internally calls ``emit_subparticle`` shader method. It will emit a particle from the configured sub-emitter and also allows to customize how its emitted. Requires a sub-emitter assigned to the particles node with this shader.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------------------------------------------+-----------------------------------------------------------------+--------+
  21. | :ref:`EmitFlags<enum_VisualShaderNodeParticleEmit_EmitFlags>` | :ref:`flags<class_VisualShaderNodeParticleEmit_property_flags>` | ``31`` |
  22. +---------------------------------------------------------------+-----------------------------------------------------------------+--------+
  23. .. rst-class:: classref-section-separator
  24. ----
  25. .. rst-class:: classref-descriptions-group
  26. Enumerations
  27. ------------
  28. .. _enum_VisualShaderNodeParticleEmit_EmitFlags:
  29. .. rst-class:: classref-enumeration
  30. enum **EmitFlags**: :ref:`🔗<enum_VisualShaderNodeParticleEmit_EmitFlags>`
  31. .. _class_VisualShaderNodeParticleEmit_constant_EMIT_FLAG_POSITION:
  32. .. rst-class:: classref-enumeration-constant
  33. :ref:`EmitFlags<enum_VisualShaderNodeParticleEmit_EmitFlags>` **EMIT_FLAG_POSITION** = ``1``
  34. If enabled, the particle starts with the position defined by this node.
  35. .. _class_VisualShaderNodeParticleEmit_constant_EMIT_FLAG_ROT_SCALE:
  36. .. rst-class:: classref-enumeration-constant
  37. :ref:`EmitFlags<enum_VisualShaderNodeParticleEmit_EmitFlags>` **EMIT_FLAG_ROT_SCALE** = ``2``
  38. If enabled, the particle starts with the rotation and scale defined by this node.
  39. .. _class_VisualShaderNodeParticleEmit_constant_EMIT_FLAG_VELOCITY:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`EmitFlags<enum_VisualShaderNodeParticleEmit_EmitFlags>` **EMIT_FLAG_VELOCITY** = ``4``
  42. If enabled,the particle starts with the velocity defined by this node.
  43. .. _class_VisualShaderNodeParticleEmit_constant_EMIT_FLAG_COLOR:
  44. .. rst-class:: classref-enumeration-constant
  45. :ref:`EmitFlags<enum_VisualShaderNodeParticleEmit_EmitFlags>` **EMIT_FLAG_COLOR** = ``8``
  46. If enabled, the particle starts with the color defined by this node.
  47. .. _class_VisualShaderNodeParticleEmit_constant_EMIT_FLAG_CUSTOM:
  48. .. rst-class:: classref-enumeration-constant
  49. :ref:`EmitFlags<enum_VisualShaderNodeParticleEmit_EmitFlags>` **EMIT_FLAG_CUSTOM** = ``16``
  50. If enabled, the particle starts with the ``CUSTOM`` data defined by this node.
  51. .. rst-class:: classref-section-separator
  52. ----
  53. .. rst-class:: classref-descriptions-group
  54. Property Descriptions
  55. ---------------------
  56. .. _class_VisualShaderNodeParticleEmit_property_flags:
  57. .. rst-class:: classref-property
  58. :ref:`EmitFlags<enum_VisualShaderNodeParticleEmit_EmitFlags>` **flags** = ``31`` :ref:`🔗<class_VisualShaderNodeParticleEmit_property_flags>`
  59. .. rst-class:: classref-property-setget
  60. - |void| **set_flags**\ (\ value\: :ref:`EmitFlags<enum_VisualShaderNodeParticleEmit_EmitFlags>`\ )
  61. - :ref:`EmitFlags<enum_VisualShaderNodeParticleEmit_EmitFlags>` **get_flags**\ (\ )
  62. Flags used to override the properties defined in the sub-emitter's process material.
  63. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  64. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  65. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  66. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  67. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  68. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  69. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  70. .. |void| replace:: :abbr:`void (No return value.)`