Skip to content

LooseUiTextureData9Slice

Class Documentation

Edit documentation

A nine-slice packed image provider: the whole image is cut into a 3 x 3 grid by four margins. The corners keep their size, the sides stretch along one axis, and the centre stretches along both.

One pair of numbers does two jobs here. It places the cuts in the image, and it is also the size the edges are drawn at. Slicing and the scaling of the edge sizes are described on IUiTextureDataProvider.

Properties

EdgeSizesLeftRight

Vec2 = [10, 10]
Edit documentation

Width of the left and of the right column. In the image it is a distance in texels from the left and from the right edge to the cut. On screen it is the width of the column in pixels of the icon's layout.

EdgeSizesTopBottom

Vec2 = [10, 10]
Edit documentation

Height of the top and of the bottom row: texels from the top and from the bottom edge of the image to the cut, and the height of the row on screen in pixels of the icon's layout.