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:texture(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:texture(texture)
Method Property | Fluent Description | Representation |
texture accepts | a Texture | |
Return Value | a SpriteTask | |
overload 3:
SpriteTask:texture(texture, width, height)