+1 vote

So far I tried:

func _ready():
    get_node("description").add_color_override("font_color_shadow", Color(1,0,0))

but with no effect on my node. Is there a way?

in Engine by (330 points)

1 Answer

0 votes

A Label node has shadow_offset_x, shadow_offset_y, and shadow_as_outline attributes that can be set from the inspector or in a custom theme.

RichTextLabel has no such settings in the inspector or the theme editor, which suggests to me that these attributes do not exist for RichTextLabel, or, at the very least, they can't be changed. But I'm not certain.

by (1,515 points)

Thanks for your answer even though little disappointed because it ads nice effect to the font. I might end up with label if that is going to be enough.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.