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

== Function ==
=== Synopsis ===
<source lang="lua">
texture = SpriteBatch:getTexture( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|Texture|texture|The Image or Canvas used by the SpriteBatch.}}

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