Skip to content

Godot:RichTextLabel

godot 여러줄 출력 가능한 라벨 컨트롤.

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")

컨테이너 배치시 세로 너비 자동 조절

컨테이너 안에 배치할 경우 "Size Flag"를 "Shrink Center"로 적용할 경우 텍스트가 출력되지 않을 수 있다. 이 경우 Fit Content Height 옵션을 Enable 하면 된다.

BBCode

See also

Favorite site