PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

SliceScale

ImageButton

float

Scales the 9slice edges by the specified ratio. This means that the edges around the 9slice will grow as if you’d uploaded a new version of the texture upscaled. Defaults to 1.0.

As a multiplier for the borders of a 9slice, it is useful for reusing one rounded corner image for multiple radii

Scaling example

See also

  • ImageButton/ScaleType, determines how an image will scale if displayed in a UI element whose size differs from the source image
  • ImageLabel/ScaleCenter,determines the center of a 9slice image
  • ImageButton/SliceScale, the same property in terms of functionality but for ImageButton|ImageButtons