Material Box

Material Box

WEB Design & Material Images

Godot - Change Label text outline color and size

Godot

GDScript code example to change Label text outline color and size.


By specifying "font_outline_color" property with add_theme_color_override(), it is possible to change Label text outline color.
Also, by specifying "outline_size" property with add_theme_constant_override(), the outline size can be changed.

var label = Label.new()
add_child(label)

label.add_theme_color_override("font_outline_color", Color("#FF2222", 1))
label.add_theme_constant_override("outline_size", 5)

Godot

TitleGodot - Change Label text outline color and size

CategoryGodot

Created

Update

AuthorYousuke.U