Skip to content

ColorRectTexture

Basic Properties

Field Description
color The color applied to the rectangle
radiusLT Top-left corner radius
radiusLB Bottom-left corner radius
radiusRT Top-right corner radius
radiusRB Bottom-right corner radius

APIs

setRadius

Sets a uniform radius for all corners.

colorRectTexture.setRadius(10);

setLeftRadius

Sets the left-side radii (top and bottom) for the rectangle.

colorRectTexture.setLeftRadius(8);

setRightRadius

Sets the right-side radii (top and bottom) for the rectangle.

colorRectTexture.setRightRadius(8);

setTopRadius

Sets the top-side radii (left and right) for the rectangle.

colorRectTexture.setTopRadius(8);

setBottomRadius

Sets the bottom-side radii (left and right) for the rectangle.

colorRectTexture.setBottomRadius(8);