Material Box

Material Box

WEB Design & Material Images

Godot - Change Label text color and opacity

Godot

GDScript code example to change Label text color and opacity.


Can change Label text color and opacity by specifying "font_color" property with add_theme_color_override().
Specify color code and opacity from "0" to "1".

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

label.add_theme_color_override("font_color", Color("#FFF", 1))

Godot

TitleGodot - Change Label text color and opacity

CategoryGodot

Created

Update

AuthorYousuke.U