{{newin|[[0.9.1]]|091|type=function}}
Gets the texture ([[Image]] or [[Canvas]]) used when drawing the Mesh.

== Function ==
=== Synopsis ===
<source lang="lua">
texture = Mesh:getTexture( )
</source>
=== Arguments ===
None.

=== Returns ===
{{param|Texture|texture (nil)|The Image or Canvas to texture the Mesh with when drawing, or nil if none is set.}}

== See Also ==
* [[parent::Mesh]]
* [[Mesh:setTexture]]
[[Category:Functions]]
{{#set:Description=Gets the texture ([[Image]] or [[Canvas]]) used when drawing the Mesh.}}
== Other Languages ==
{{i18n|Mesh:getTexture}}