SpriteTask.setTexture

Sets this task's texture
The texture's width and height must be provided if the texture is a location
For custom textures,
the dimensions are optional
overload 1:
SpriteTask:setTexture(textureLocation, width, height)
Method Property Fluent Description Representation
textureLocation accepts a String
width accepts an Integer
height accepts an Integer
Return Value a SpriteTask
overload 2:
SpriteTask:setTexture(texture)
Method Property Fluent Description Representation
texture accepts a Texture
Return Value a SpriteTask
overload 3:
SpriteTask:setTexture(texture, width, height)
Method Property Fluent Description Representation
texture accepts a Texture
width accepts an Integer
height accepts an Integer
Return Value a SpriteTask
overload 4:
SpriteTask:setTexture(textureLocation, dimensions)
Method Property Fluent Description Representation
textureLocation accepts a String
dimensions accepts a Vector2
Return Value a SpriteTask
overload 5:
SpriteTask:setTexture(texture, dimensions)
Method Property Fluent Description Representation
texture accepts a Texture
dimensions accepts a Vector2
Return Value a SpriteTask
a a