How would I make part of a gradient transparent?

I would like to create a fade effect (black → transparent), and I think UIGradient is the best way to do it, however I haven’t found a method to make one of the gradient colors transparent.

This is what I’ve got so far, I would like the white to be completely transparent but the darker part/black at the bottom to stay.
image

1 Like

You are using the Transparency property within the UIGradient right?

Yes, but that makes the entirety of the gradient fade out.

UIGradients’s Transparency can be a NumberSequence you can play around with like the color property, click the number then the … on the right

2 Likes

Sorry I’m not sure I’m understanding clearly. Are you trying to do something like this?

2 Likes

Works, didn’t know it was a numbersequence.

Thanks @CrazyCorrs and @MP3Face
image

Looks great now.

4 Likes

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