How can I make a ui gradient affect only a portion of the parent?

So when you put a ui gradient into something and do whatever with the properties, it affect the whole thing, like this:


If I could just like trim down the vertical length, to like a square, that would be so awesome.
I’m thinking of using more canvas groups with ui gradients but It’s not working out.

1 Like

Your CanvasGroup hack is the only way to “crop” something on both X and Y axis. Beware, it will use more memory

1 Like

yeah but like how, how do I do it?
303030303

1 Like

ViewportFrames in CanvasGroups, as mentioned, is not the best combo you should have, but here’s a sample place file for you:
file.rbxm (13.1 KB)


It uses 2 gradients