Ability to make/edit clipping masks for UI elements in Studio

As a Roblox Developer it’s currently impossible to cut an implemented GUI properly within studio, meaning that making rounded corners or filling a background layered underneath a custom GUI border is frankly impossible.

I think it’d be very nice to be able to cut pieces off by using a lasso tool while in-studio. Not only should this be possible for image-related GUI but Frames and such as well.

Example Scenario

Imagine you made this GUI and put it in Roblox. You intended to have a profile picture inside the bigger circle using the new VierportFrame.

You realize, however, that it won’t fit because the corners of the image will stick out.

With this new feature, you’d be able to round these corners off by cutting the corners using this lasso tool. This tool shouldn’t only allow free-hand selection but also things like polygon-lasso, circle & rectangle selection. The ability to feather the removal and invert the selection would be nice as well.

Lasso
PolygonLasso
Rectangle
Circular

This would result in a fine profile picture within a frame! :smiley:

It would remove the need to make multiple images with identical or different boundaries in 2D editors. It’ll make things more convenient for developers who prefer using the Frames without having to use a preset like ‘RobloxButtonDefault’ (because you can’t really edit them!). Hopefully people think the same way :smiley:

9 Likes

Your example could probably be solved with the presumably easier feature of being able to set ImageLabel as a circle/ellipse rather than rectangle.

I imagine it would be a bit simpler than doing free lasso as there’s only 1 setting instead of unlimited amounts of points.

3 Likes

A more common alternative that accomplishes the same thing is a mask. A mask is a grayscale image where white represents fully visible, black represents hidden, and gray represents transparency.

If Roblox implemented image masks, you would just make an image with a white circle where the head goes, then apply it as a mask.

Image masks would likely take less work than drawing out points and image masks are more supported outside of Roblox.

10 Likes

So understanding correctly, this would basically be the tooling (Studio) part of this feature request: (it needs that one implemented in order to work)

i.e. clipping masks, but then this feature request is for having a way to edit those masks in Studio, rather than uploading them.

EDIT: adjusted title of thread

6 Likes