UIGradient doesn’t transfer to children

I am using UIGradient to make the edges of a frame fade in and out. Problem is, when I put anything inside of the frame (another frame, a button and etc), the gradient doesn’t work. Any tips to fix this?

image

image

1 Like

You can try replacing the primary frame with a CanvasGroup? It seems to allow for the inheriting of things like gradients and corners better than a frame allows

3 Likes

Never heard about it, thank you! It does work! :slight_smile:

It seems like barely anyone knows about CanvasGroups! Ever since I discovered it I’ve been using it pretty often!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.