UIGradient not working when playing, but does when editing

You can write your topic however you want, but you need to answer these questions:

  1. I want my UIGradients to work on textlabel

  2. It works when editing but stops working when playing

  3. I tried googling for solutions but I found nothing. Background - transparent, Textlabel color - white
    Also tried removing uistroke, it did nothing

image - studio

image - playing

2 Likes

I just tried this out and it works for me perfectly fine, I just made a new Frame and put the TextLabel as a child along with the UIGradient and it worked when in studio and in game so i’m not sure if its something you’re doing wrong with the hierarchy, or possibly just something is wrong with your studio?
image

Studio

InGame

If this doesn’t work can you possibly also provide screenshots of how your hierarchy is with your TextLabel and UIGradient? I’m sure it will be helpful for others who may know your issue if i’m wrong!

2 Likes

Hi. I’m not sure how I fixed it, but I tried changing the properties with a script and it started working. It was a weird bug for sure.

This is my hierarchy
image