Gui Button image transparent part becomes gray

In GUI a Button image has a transparent part,
normally in the GUI editor.

But, after embedding code project, transparent becomes gray .

How should I solve it

Could you share the Editor link (or create just an extract/repro)?
It’s likely about setting the color of the parent container, but I can’t be sure just from the screenshot.
Try to set the background color of parent (“state_active”) to Hex(a) color #00000000 and same for your picture (“bg”). When editing the color, delete the 2 last (alpha) defaults from color #000000FF and replace with 00, to ensure you have a transparent background on both parent and child.
If this doesn’t do the trick, as I said, please provide a link to a repro.

sorry, GUI is normal, no problem.
my code set
button.isEnabled = false;
gray will appear. If this attribute is not set, the effect is normal.

Indeed. I also noticed that. It’s part of the behavior. At some point, I even asked if we could change this. But you can use ‘isReadOnly’ and ‘isPointerBlocker’ to block pointer interactions so I guess it’s fine like that. You can mark your answer as a solution to close the topic and meanwhile, have a great day :sunglasses: :sunglasses:

1 Like

Thank you very much.
This is already fine.
isReadOnly can solve my needs.
a great day.