Companion

object Companion

Functions

Link copied to clipboard
fun from(resolver: () -> Texture2D): Sprite2D

Creates a Sprite2D from the given resolver function that provides an Texture2D.

fun from(image: Image): Sprite2D

Creates a Sprite2D from the given image.

fun from(texture: Texture2D): Sprite2D

Creates a Sprite2D from the given texture.