Material Box

Material Box

WEB Design & Material Images

Godot - Changing the Label Font Size

Godot

This is a code example for changing the font size of a Label node in GDScript.


You can change the `font_size` property of the Label node by specifying it with `add_theme_font_size_override()`.

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

# Change the Label font size
label.add_theme_font_size_override("font_size", 50)

Godot

TitleGodot - Changing the Label Font Size

CategoryGodot

Created

Update

AuthorYousuke.U