NineSlice
From a script
ts
import { NineSliceComponent } from "mmpx";
const nineSlice = this.entity.TryGetComponent(NineSliceComponent);Full API: NineSliceComponent.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
Sprite FrameassetId | texture asset | — | |
Colortint | colour | #FFFFFF | |
Left WidthleftWidth | number (0 … ∞) | 0 | |
Top HeighttopHeight | number (0 … ∞) | 0 | |
Right WidthrightWidth | number (0 … ∞) | 0 | |
Bottom HeightbottomHeight | number (0 … ∞) | 0 | |
Materialmaterial | material asset | — | A sprite-domain material — a shader drawing this component |