Skip to content

NineSlice ​

RenderingScripts: NineSliceComponent

From a script ​

ts
import { NineSliceComponent } from "mmpx";

const nineSlice = this.entity.TryGetComponent(NineSliceComponent);

Full API: NineSliceComponent.

Fields ​

FieldTypeDefaultDescription
Sprite Frame
assetId
texture asset—
Color
tint
colour#FFFFFF
Left Width
leftWidth
number (0 … ∞)0
Top Height
topHeight
number (0 … ∞)0
Right Width
rightWidth
number (0 … ∞)0
Bottom Height
bottomHeight
number (0 … ∞)0
Material
material
material asset—A sprite-domain material — a shader drawing this component

© 2026 PlayAdGentic