|Attention||Topic was automatically imported from the old Question2Answer platform.|
I am new to the engine, and currently im trying to change the color of a TextLabel on entering a keyword in the LineEdit box
On the properties tab of the TextLabel, I have noticed the property “modulate”. When I change the color in the editor, it seems to change the color correctly. However, in code it doesn’t seem to work properly (only get really thin red lines). This is what I used to modulate the color:
TextLabel.modulate = Color(255, 0, 0, 255)
After searching a bit, I found the solution to this problem by using:
TextLabel.add_color_override("font_color", Color(255, 0, 0, 255))
Even though this fixed my problem, I am still curious why this doesn’t work with modulate?