class_meshtexture.rst 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 MeshTexture.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_MeshTexture:
  6. MeshTexture
  7. ===========
  8. **Inherits:** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Simple texture that uses a mesh to draw itself.
  13. Properties
  14. ----------
  15. +-------------------------------+--------------------------------------------------------------+-----------------+
  16. | :ref:`Texture<class_Texture>` | :ref:`base_texture<class_MeshTexture_property_base_texture>` | |
  17. +-------------------------------+--------------------------------------------------------------+-----------------+
  18. | :ref:`int<class_int>` | flags | **O:** 0 |
  19. +-------------------------------+--------------------------------------------------------------+-----------------+
  20. | :ref:`Vector2<class_Vector2>` | :ref:`image_size<class_MeshTexture_property_image_size>` | Vector2( 0, 0 ) |
  21. +-------------------------------+--------------------------------------------------------------+-----------------+
  22. | :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_MeshTexture_property_mesh>` | |
  23. +-------------------------------+--------------------------------------------------------------+-----------------+
  24. Description
  25. -----------
  26. Simple texture that uses a mesh to draw itself. It's limited because flags can't be changed and region drawing is not supported.
  27. Property Descriptions
  28. ---------------------
  29. .. _class_MeshTexture_property_base_texture:
  30. - :ref:`Texture<class_Texture>` **base_texture**
  31. +----------+-------------------------+
  32. | *Setter* | set_base_texture(value) |
  33. +----------+-------------------------+
  34. | *Getter* | get_base_texture() |
  35. +----------+-------------------------+
  36. Sets the base texture that the Mesh will use to draw.
  37. .. _class_MeshTexture_property_image_size:
  38. - :ref:`Vector2<class_Vector2>` **image_size**
  39. +-----------+-----------------------+
  40. | *Default* | Vector2( 0, 0 ) |
  41. +-----------+-----------------------+
  42. | *Setter* | set_image_size(value) |
  43. +-----------+-----------------------+
  44. | *Getter* | get_image_size() |
  45. +-----------+-----------------------+
  46. Sets the size of the image, needed for reference.
  47. .. _class_MeshTexture_property_mesh:
  48. - :ref:`Mesh<class_Mesh>` **mesh**
  49. +----------+-----------------+
  50. | *Setter* | set_mesh(value) |
  51. +----------+-----------------+
  52. | *Getter* | get_mesh() |
  53. +----------+-----------------+
  54. Sets the mesh used to draw. It must be a mesh using 2D vertices.