Skip to content

setTextureSliceBorder

setTextureSliceBorder(textureId, left, right, top, bottom): void

Defined in: render/textureParams.ts:46

The texture’s 9-slice border, in texture pixels from each edge. A property of the IMAGE — every UIVisual set to NineSlice reads it, so a frame is sliced once at import rather than re-typed on every entity that uses it. Normally applied by the asset pipeline at load; call it directly to re-slice a texture already resident (an authoring tool editing the border live).

number

number

number

number

number

void