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.
setLeftRadius
Sets the left-side radii (top and bottom) for the rectangle.
setRightRadius
Sets the right-side radii (top and bottom) for the rectangle.
setTopRadius
Sets the top-side radii (left and right) for the rectangle.
setBottomRadius
Sets the bottom-side radii (left and right) for the rectangle.