class_meshtexture.rst 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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/MeshTexture.xml.
  6. .. _class_MeshTexture:
  7. MeshTexture
  8. ===========
  9. **Inherits:** :ref:`Texture2D<class_Texture2D>` **<** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Simple texture that uses a mesh to draw itself.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Simple texture that uses a mesh to draw itself. It's limited because flags can't be changed and region drawing is not supported.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
  21. | :ref:`Texture2D<class_Texture2D>` | :ref:`base_texture<class_MeshTexture_property_base_texture>` | |
  22. +-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
  23. | :ref:`Vector2<class_Vector2>` | :ref:`image_size<class_MeshTexture_property_image_size>` | ``Vector2(0, 0)`` |
  24. +-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
  25. | :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_MeshTexture_property_mesh>` | |
  26. +-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | resource_local_to_scene | ``false`` (overrides :ref:`Resource<class_Resource_property_resource_local_to_scene>`) |
  28. +-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
  29. .. rst-class:: classref-section-separator
  30. ----
  31. .. rst-class:: classref-descriptions-group
  32. Property Descriptions
  33. ---------------------
  34. .. _class_MeshTexture_property_base_texture:
  35. .. rst-class:: classref-property
  36. :ref:`Texture2D<class_Texture2D>` **base_texture** :ref:`🔗<class_MeshTexture_property_base_texture>`
  37. .. rst-class:: classref-property-setget
  38. - |void| **set_base_texture**\ (\ value\: :ref:`Texture2D<class_Texture2D>`\ )
  39. - :ref:`Texture2D<class_Texture2D>` **get_base_texture**\ (\ )
  40. Sets the base texture that the Mesh will use to draw.
  41. .. rst-class:: classref-item-separator
  42. ----
  43. .. _class_MeshTexture_property_image_size:
  44. .. rst-class:: classref-property
  45. :ref:`Vector2<class_Vector2>` **image_size** = ``Vector2(0, 0)`` :ref:`🔗<class_MeshTexture_property_image_size>`
  46. .. rst-class:: classref-property-setget
  47. - |void| **set_image_size**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
  48. - :ref:`Vector2<class_Vector2>` **get_image_size**\ (\ )
  49. Sets the size of the image, needed for reference.
  50. .. rst-class:: classref-item-separator
  51. ----
  52. .. _class_MeshTexture_property_mesh:
  53. .. rst-class:: classref-property
  54. :ref:`Mesh<class_Mesh>` **mesh** :ref:`🔗<class_MeshTexture_property_mesh>`
  55. .. rst-class:: classref-property-setget
  56. - |void| **set_mesh**\ (\ value\: :ref:`Mesh<class_Mesh>`\ )
  57. - :ref:`Mesh<class_Mesh>` **get_mesh**\ (\ )
  58. Sets the mesh used to draw. It must be a mesh using 2D vertices.
  59. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  60. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  61. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  62. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  63. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  64. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  65. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  66. .. |void| replace:: :abbr:`void (No return value.)`