The 2D layer · function

createSpriteFrame

Explained in Sprites and tilemaps.

function createSpriteFrame(): SpriteFrame
import { createSpriteFrame } from '@driftengine/ui2d';