Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mr.fies |
Hi, the question says all.
I tried to load a .png-file with transparent background as material of the TextEdit, but I couldnt chose that file.
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mr.fies |
Hi, the question says all.
I tried to load a .png-file with transparent background as material of the TextEdit, but I couldnt chose that file.
Reply From: | Zylann |
In the Custom Styles
section in the inspector, you can choose how the background looks like for each state of the TextEdit
. For example, you can check the Normal
one, and assign a new StyleBoxFlat
. Inside this stylebox, you can then choose the color.
Note: I noticed that the result does not immediately update in the viewport, to workaround this just drag the TextEdit
around or change its text.
Alternatively, if you want to completely remove the background, assign a new StyleBoxEmpty
to the custom styles.
If you want a texture, you may try StyleBoxTexture
.
Perfect, thank you.
mr.fies | 2019-01-25 21:04
I noticed something odd about this. If you set the read only background color to be transparent, then it shows a gray default background.It’s like the read only style is getting overlayed the normal style?
Is this a glitch?
Merlin1846 | 2020-11-13 18:21
If this doesn’t work above, just go to custom color and change it to alpha 0. This will make it completely transparent
Mrpaolosarino | 2021-04-05 12:03