class_multimeshinstance2d.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the MultiMeshInstance2D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_MultiMeshInstance2D:
  6. MultiMeshInstance2D
  7. ===================
  8. **Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Node that instances a :ref:`MultiMesh<class_MultiMesh>` in 2D.
  13. Properties
  14. ----------
  15. +-----------------------------------+------------------------------------------------------------------+
  16. | :ref:`MultiMesh<class_MultiMesh>` | :ref:`multimesh<class_MultiMeshInstance2D_property_multimesh>` |
  17. +-----------------------------------+------------------------------------------------------------------+
  18. | :ref:`Texture<class_Texture>` | :ref:`normal_map<class_MultiMeshInstance2D_property_normal_map>` |
  19. +-----------------------------------+------------------------------------------------------------------+
  20. | :ref:`Texture<class_Texture>` | :ref:`texture<class_MultiMeshInstance2D_property_texture>` |
  21. +-----------------------------------+------------------------------------------------------------------+
  22. Signals
  23. -------
  24. .. _class_MultiMeshInstance2D_signal_texture_changed:
  25. - **texture_changed** **(** **)**
  26. Description
  27. -----------
  28. ``MultiMeshInstance2D`` is a specialized node to instance a :ref:`MultiMesh<class_MultiMesh>` resource in 2D.
  29. Usage is the same as :ref:`MultiMeshInstance<class_MultiMeshInstance>`.
  30. Property Descriptions
  31. ---------------------
  32. .. _class_MultiMeshInstance2D_property_multimesh:
  33. - :ref:`MultiMesh<class_MultiMesh>` **multimesh**
  34. +----------+----------------------+
  35. | *Setter* | set_multimesh(value) |
  36. +----------+----------------------+
  37. | *Getter* | get_multimesh() |
  38. +----------+----------------------+
  39. The :ref:`MultiMesh<class_MultiMesh>` that will be drawn by the ``MultiMeshInstance2D``.
  40. .. _class_MultiMeshInstance2D_property_normal_map:
  41. - :ref:`Texture<class_Texture>` **normal_map**
  42. +----------+-----------------------+
  43. | *Setter* | set_normal_map(value) |
  44. +----------+-----------------------+
  45. | *Getter* | get_normal_map() |
  46. +----------+-----------------------+
  47. The normal map that will be used if using the default :ref:`CanvasItemMaterial<class_CanvasItemMaterial>`.
  48. .. _class_MultiMeshInstance2D_property_texture:
  49. - :ref:`Texture<class_Texture>` **texture**
  50. +----------+--------------------+
  51. | *Setter* | set_texture(value) |
  52. +----------+--------------------+
  53. | *Getter* | get_texture() |
  54. +----------+--------------------+
  55. 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.