Skip to content
Search

Godot:RichTextLabel

lastmod 2023-03-30created 2020-11-045 edits

godot label control that can display multiple lines.

Append Text Example

extends MarginContainer

onready var rtl = $HBoxContainer/RichTextLabel
onready var gmm = $libgmm

# Called when the node enters the scene tree for the first time.
func _ready():
    pass

func _on_Button_pressed():
    rtl.append_bbcode(gmm.get_data() + "\n")

Automatic height adjustment when placed in a container

When placed inside a container with "Size Flag" set to "Shrink Center", the text may not be displayed. In that case, Enable the Fit Content Height option.

BBCode

See also

Favorite site

author Zer0 sitemap