class_multimeshinstance2d.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/doc/classes/MultiMeshInstance2D.xml.
  6. .. _class_MultiMeshInstance2D:
  7. MultiMeshInstance2D
  8. ===================
  9. **Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Node that instances a :ref:`MultiMesh<class_MultiMesh>` in 2D.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **MultiMeshInstance2D** is a specialized node to instance a :ref:`MultiMesh<class_MultiMesh>` resource in 2D.
  15. Usage is the same as :ref:`MultiMeshInstance3D<class_MultiMeshInstance3D>`.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-----------------------------------+----------------------------------------------------------------+
  22. | :ref:`MultiMesh<class_MultiMesh>` | :ref:`multimesh<class_MultiMeshInstance2D_property_multimesh>` |
  23. +-----------------------------------+----------------------------------------------------------------+
  24. | :ref:`Texture2D<class_Texture2D>` | :ref:`texture<class_MultiMeshInstance2D_property_texture>` |
  25. +-----------------------------------+----------------------------------------------------------------+
  26. .. rst-class:: classref-section-separator
  27. ----
  28. .. rst-class:: classref-descriptions-group
  29. Signals
  30. -------
  31. .. _class_MultiMeshInstance2D_signal_texture_changed:
  32. .. rst-class:: classref-signal
  33. **texture_changed** **(** **)**
  34. Emitted when the :ref:`texture<class_MultiMeshInstance2D_property_texture>` is changed.
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Property Descriptions
  39. ---------------------
  40. .. _class_MultiMeshInstance2D_property_multimesh:
  41. .. rst-class:: classref-property
  42. :ref:`MultiMesh<class_MultiMesh>` **multimesh**
  43. .. rst-class:: classref-property-setget
  44. - void **set_multimesh** **(** :ref:`MultiMesh<class_MultiMesh>` value **)**
  45. - :ref:`MultiMesh<class_MultiMesh>` **get_multimesh** **(** **)**
  46. The :ref:`MultiMesh<class_MultiMesh>` that will be drawn by the **MultiMeshInstance2D**.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _class_MultiMeshInstance2D_property_texture:
  50. .. rst-class:: classref-property
  51. :ref:`Texture2D<class_Texture2D>` **texture**
  52. .. rst-class:: classref-property-setget
  53. - void **set_texture** **(** :ref:`Texture2D<class_Texture2D>` value **)**
  54. - :ref:`Texture2D<class_Texture2D>` **get_texture** **(** **)**
  55. The :ref:`Texture2D<class_Texture2D>` that will be used if using the default :ref:`CanvasItemMaterial<class_CanvasItemMaterial>`. Can be accessed as ``TEXTURE`` in CanvasItem shader.
  56. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  57. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  58. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  59. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  60. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  61. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`