class_multimeshinstance2d.rst 3.8 KB

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