constructor Method
construct a Sprite from an ImageSource or a Url
Sprite(src: ImageSource | string): Sprite
Parameter | Type | Description |
---|---|---|
src | ImageSource | string | The ImageSource holding an image to create the texture for this Sprite, or the url of the image |
Defined in
Last Updated: 08 January, 2020