Skip to main content

Type Alias: SliceScaleMode

SliceScaleMode = "stretch" | "tile"

Defined in: rendering/nine-slice-options.ts:8

How a nine-slice region behaves when the sprite is resized: 'stretch' scales the region's texture to fill the available space, while 'tile' repeats the region's texture at its native size, rounding the repeat count so tiles fill the available space evenly (no cropped partial tile at the end).