class_meshtexture.rst 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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:`Vector2<class_Vector2>` | :ref:`image_size<class_MeshTexture_property_image_size>` | Vector2( 0, 0 ) |
  19. +-------------------------------+--------------------------------------------------------------+-----------------+
  20. | :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_MeshTexture_property_mesh>` | |
  21. +-------------------------------+--------------------------------------------------------------+-----------------+
  22. Description
  23. -----------
  24. Simple texture that uses a mesh to draw itself. It's limited because flags can't be changed and region drawing is not supported.
  25. Property Descriptions
  26. ---------------------
  27. .. _class_MeshTexture_property_base_texture:
  28. - :ref:`Texture<class_Texture>` **base_texture**
  29. +----------+-------------------------+
  30. | *Setter* | set_base_texture(value) |
  31. +----------+-------------------------+
  32. | *Getter* | get_base_texture() |
  33. +----------+-------------------------+
  34. Sets the base texture that the Mesh will use to draw.
  35. .. _class_MeshTexture_property_image_size:
  36. - :ref:`Vector2<class_Vector2>` **image_size**
  37. +-----------+-----------------------+
  38. | *Default* | Vector2( 0, 0 ) |
  39. +-----------+-----------------------+
  40. | *Setter* | set_image_size(value) |
  41. +-----------+-----------------------+
  42. | *Getter* | get_image_size() |
  43. +-----------+-----------------------+
  44. Sets the size of the image, needed for reference.
  45. .. _class_MeshTexture_property_mesh:
  46. - :ref:`Mesh<class_Mesh>` **mesh**
  47. +----------+-----------------+
  48. | *Setter* | set_mesh(value) |
  49. +----------+-----------------+
  50. | *Getter* | get_mesh() |
  51. +----------+-----------------+
  52. Sets the mesh used to draw. It must be a mesh using 2D vertices.