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
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
Hi,
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
Thank you very much.
This is already fine.
isReadOnly can solve my needs.
a great day.