MultiMeshInstance2D.xml 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="MultiMeshInstance2D" inherits="Node2D" version="4.0">
  3. <brief_description>
  4. Node that instances a [MultiMesh] in 2D.
  5. </brief_description>
  6. <description>
  7. [MultiMeshInstance2D] is a specialized node to instance a [MultiMesh] resource in 2D.
  8. Usage is the same as [MultiMeshInstance3D].
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <members>
  13. <member name="multimesh" type="MultiMesh" setter="set_multimesh" getter="get_multimesh">
  14. The [MultiMesh] that will be drawn by the [MultiMeshInstance2D].
  15. </member>
  16. <member name="normal_map" type="Texture2D" setter="set_normal_map" getter="get_normal_map">
  17. The normal map that will be used if using the default [CanvasItemMaterial].
  18. [b]Note:[/b] Godot expects the normal map to use X+, Y-, and Z+ coordinates. See [url=http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for a comparison of normal map coordinates expected by popular engines.
  19. </member>
  20. <member name="texture" type="Texture2D" setter="set_texture" getter="get_texture">
  21. The [Texture2D] that will be used if using the default [CanvasItemMaterial]. Can be accessed as [code]TEXTURE[/code] in CanvasItem shader.
  22. </member>
  23. </members>
  24. <signals>
  25. <signal name="texture_changed">
  26. <description>
  27. Emitted when the [member texture] is changed.
  28. </description>
  29. </signal>
  30. </signals>
  31. </class>