Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

UICorner

UICorner : UIComponent

Overview

A UI component that rounds the corners of its parent UI element. You can specify the radius of each of the four corners individually, or set them all at once with CornerRadius.

The radius is specified as a UDim, where Scale is a ratio of the shorter of the parent UI element's width and height, and Offset is a value in pixels. The calculated radius is limited to a range from 0 to half the length of the shorter side.

UICorner is used by placing it as a child of the UI element whose corners are to be rounded. If a UI element has multiple UICorners, only the first UICorner is applied.

Properties

BottomLeftRadius

UDim

Specifies the radius of the bottom-left corner of the parent UI element.

The default is UDim.new(0, 8).

Code Samples

BottomRightRadius

UDim

Specifies the radius of the bottom-right corner of the parent UI element.

The default is UDim.new(0, 8).

Code Samples

CornerRadius

UDim

Specifies the radius of all four corners at once.

Setting this value changes TopLeftRadius, TopRightRadius, BottomRightRadius, and BottomLeftRadius all to the same value. Reading this value returns the same value as TopLeftRadius.

The default is UDim.new(0, 8).

Code Samples

TopLeftRadius

UDim

Specifies the radius of the top-left corner of the parent UI element.

Changing this value also changes CornerRadius to the same value. The default is UDim.new(0, 8).

Code Samples

TopRightRadius

UDim

Specifies the radius of the top-right corner of the parent UI element.

The default is UDim.new(0, 8).

Code Samples

Methods

Events

Last updated