class_multimeshinstance2d.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/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:`MultiMeshInstance<class_MultiMeshInstance>`.
  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:`Texture<class_Texture>` | :ref:`normal_map<class_MultiMeshInstance2D_property_normal_map>` |
  25. +-----------------------------------+------------------------------------------------------------------+
  26. | :ref:`Texture<class_Texture>` | :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** **(** **)**
  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**
  45. .. rst-class:: classref-property-setget
  46. - void **set_multimesh** **(** :ref:`MultiMesh<class_MultiMesh>` value **)**
  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_normal_map:
  52. .. rst-class:: classref-property
  53. :ref:`Texture<class_Texture>` **normal_map**
  54. .. rst-class:: classref-property-setget
  55. - void **set_normal_map** **(** :ref:`Texture<class_Texture>` value **)**
  56. - :ref:`Texture<class_Texture>` **get_normal_map** **(** **)**
  57. The normal map that will be used if using the default :ref:`CanvasItemMaterial<class_CanvasItemMaterial>`.
  58. \ **Note:** Godot expects the normal map to use X+, Y+, and Z+ coordinates. See `this page <http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinates>`__ for a comparison of normal map coordinates expected by popular engines.
  59. .. rst-class:: classref-item-separator
  60. ----
  61. .. _class_MultiMeshInstance2D_property_texture:
  62. .. rst-class:: classref-property
  63. :ref:`Texture<class_Texture>` **texture**
  64. .. rst-class:: classref-property-setget
  65. - void **set_texture** **(** :ref:`Texture<class_Texture>` value **)**
  66. - :ref:`Texture<class_Texture>` **get_texture** **(** **)**
  67. The :ref:`Texture<class_Texture>` that will be used if using the default :ref:`CanvasItemMaterial<class_CanvasItemMaterial>`. Can be accessed as ``TEXTURE`` in CanvasItem shader.
  68. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  69. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  70. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  71. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`