{{newin|[[0.9.1]]|091|type=function}}
Sets the texture ([[Image]] or [[Canvas]]) used for the sprites in the batch, when drawing.

== Function ==
=== Synopsis ===
<source lang="lua">
SpriteBatch:setTexture( texture )
</source>
=== Arguments ===
{{param|Texture|texture|The new Image or Canvas to use for the sprites in the batch.}}
=== Returns ===
Nothing.

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