class_multimeshinstance2d.rst 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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/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. Description
  12. -----------
  13. ``MultiMeshInstance2D`` is a specialized node to instance a :ref:`MultiMesh<class_MultiMesh>` resource in 2D.
  14. Usage is the same as :ref:`MultiMeshInstance3D<class_MultiMeshInstance3D>`.
  15. Properties
  16. ----------
  17. +-----------------------------------+------------------------------------------------------------------+
  18. | :ref:`MultiMesh<class_MultiMesh>` | :ref:`multimesh<class_MultiMeshInstance2D_property_multimesh>` |
  19. +-----------------------------------+------------------------------------------------------------------+
  20. | :ref:`Texture2D<class_Texture2D>` | :ref:`normal_map<class_MultiMeshInstance2D_property_normal_map>` |
  21. +-----------------------------------+------------------------------------------------------------------+
  22. | :ref:`Texture2D<class_Texture2D>` | :ref:`texture<class_MultiMeshInstance2D_property_texture>` |
  23. +-----------------------------------+------------------------------------------------------------------+
  24. Signals
  25. -------
  26. .. _class_MultiMeshInstance2D_signal_texture_changed:
  27. - **texture_changed** **(** **)**
  28. Emitted when the :ref:`texture<class_MultiMeshInstance2D_property_texture>` is changed.
  29. Property Descriptions
  30. ---------------------
  31. .. _class_MultiMeshInstance2D_property_multimesh:
  32. - :ref:`MultiMesh<class_MultiMesh>` **multimesh**
  33. +----------+----------------------+
  34. | *Setter* | set_multimesh(value) |
  35. +----------+----------------------+
  36. | *Getter* | get_multimesh() |
  37. +----------+----------------------+
  38. The :ref:`MultiMesh<class_MultiMesh>` that will be drawn by the ``MultiMeshInstance2D``.
  39. ----
  40. .. _class_MultiMeshInstance2D_property_normal_map:
  41. - :ref:`Texture2D<class_Texture2D>` **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. \ **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.
  49. ----
  50. .. _class_MultiMeshInstance2D_property_texture:
  51. - :ref:`Texture2D<class_Texture2D>` **texture**
  52. +----------+--------------------+
  53. | *Setter* | set_texture(value) |
  54. +----------+--------------------+
  55. | *Getter* | get_texture() |
  56. +----------+--------------------+
  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.)`