UICorner Individual Corners

?

I meant it can return the CornerRadius kind of the same way Color Graduation does for ParticleEmitters

1 Like

Issue with CanvasGroups is it renders as an image thus reducing the overall quality of the Interface, The thing I hate about roblox the most whenever they do something right they completely screw up something else and this is one of those cases.

6 Likes

About a week ago now, I had made this UI:
IMG_7394

The image has been compressed by Discord and Discourse (twice) at this point so what I’m trying to say might not be very clear, but the text quality is very obviously lower than it should be. If I remember in the morning, I’ll show a comparison, but the point is that having 2 CanvasGroups inside of each other will degrade the quality by a lot.

7 Likes

Bump. I’ve been wanting this ever since UICorner was introduced. There’s so many situations in UI design where you’d only want some of the corners rounded.

This is an old menu I made that would benefit from this:


In this situation I opted to just use custom images with 9Slice because the top and side bars only need 1-2 corners rounded.

4 Likes

Found the solution. Using Udim2 you can set Scale and Pixel values separately

ScaleBorderRadius: Udim2.new(0, 0, 0, 0) TopLeft, TopRight, BottomLeft, BottomRight.
PixelBorderRadius: Udim2.new(0, 0, 0, 0)

Also, Roblox can impliment a solution where just typing the number of BorderRadius inside without fully completing it, Roblox can automatically fill it in similar to AnchorPoint where as you can simply type “0.5” to make it “0.5, 0.5”. However, AnchorPoints use Vector2.new() so there could be a slight difference.

Further more, Roblox can add a RelativeTo property where ScaleBorderRadius will act upon, such as:
XY (Normal)
XX (Y will be replcaed with X scale)
YY (X will be replaced with Y scale)
YX (Normal Inverted)

RelativeTo is a simpler way to not use AspectRatios for Frames.

What if Roblox added a property that lets you choose between them? Ability to change all at once or individual corner?

Code may look like this:

if script.Parent.CornerUI.BorderRadiusType == Enum.BorderRadiusType.Individual then
     return script.Parent.CornerUI.TopLeftCornerRadius
elseif script.Parent.CornerUI.BorderRadiusType == Enum.BorderRadiusType.Combined then
     return script.Parent.CornerUI.CornerRadius
end

UDim2 doesn’t work with UICorner, unless I am minunderstanding something

Yes, but judging the circumstances of extra added properties it would be common to use Udim2.new(), currently no, you’re right, you cannot use Udim2.new() on the current CornerUI.

Bump. This would be extremely useful, I ran into the same issues, and I’m using transparent GUI, so there is no workaround.

You can use opaque frames inside a CanvasGroup, and set the GroupTransparency to what you need.

1 Like

CanvasGroups and ClipDescendants exist, if you didn’t know.

They were already aware of this, as they posted an example within this thread in June of 2023 that made use of CanvasGroups; however, they highlighted how it degraded the quality of the Text inside, which is why it wasn’t deemed as a realistically viable option:

3 Likes

This feature would be awesome! Too bad Roblox moderators stopped checking feature requests a while back… I would love if this would be added…

5 Likes

BUMP BUMP BUMP!!

We seriously need this feature!

I don’t know how many times/features I had to bump just because they weren’t available at the moment.

2 Likes

Bumping this post.

I’m not entirely sure if this is possible from the engineering side since it comes with many inconveniences that I’ve seen from reading this post, but I’d say that this would contribute to many upcoming games since it would definitely allow UI designers to be more flexible and creative with their options while performing in Studio. I think that developing many small-scale tools for UI designs should be a priority for Roblox, as it would definitely substitute the need to use external and possibly paid programs and would greatly help attract more developers due to non-paid nature and the countless and useful features that would be present on Roblox Studio

1 Like