The 2D layer · function

createSpriteBatch

Explained in Sprites and tilemaps.

function createSpriteBatch(capacity: number): SpriteBatch
import { createSpriteBatch } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
capacitynumber