Interface: NineSliceRegion
Defined in: rendering/utilities/compute-nine-slice-regions.ts:9
A single quad, in a sliced sprite's own local sprite-space, that the
render system draws in place of the sprite's single quad when it has
NineSliceOptions set.
Properties
offset
offset:
Vector2
Defined in: rendering/utilities/compute-nine-slice-regions.ts:15
This region's center, as an offset from the sprite's pivot-adjusted
anchor point, in the sprite's unscaled local units (before rotation and
ScaleEcsComponent are applied).
size
size:
Vector2
Defined in: rendering/utilities/compute-nine-slice-regions.ts:18
This region's rendered width/height, in the same unscaled units.
uvOffset
uvOffset:
Vector2
Defined in: rendering/utilities/compute-nine-slice-regions.ts:21
The top-left corner of this region's texture rect, 0 to 1.
uvScale
uvScale:
Vector2
Defined in: rendering/utilities/compute-nine-slice-regions.ts:24
The width/height of this region's texture rect, 0 to 1.