Material Box

Material Box

WEB Design & Material Images

Godot - Changing the Line Spacing of Label Text

Godot

This is a code example for changing the line spacing of Label text in GDScript.


You can change the line spacing of multi-line text by specifying the `line_spacing` property with `add_theme_constant_override()`.

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

# Text line spacing
label.add_theme_constant_override("line_spacing", 50)

Godot

TitleGodot - Changing the Line Spacing of Label Text

CategoryGodot

Created

Update

AuthorYousuke.U