From abbff65dc835af0487492845c83c7392a53b971d Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Fri, 20 Dec 2019 23:55:09 +0100 Subject: [PATCH] Mention that bbcode_text += string is a bad idea --- doc/classes/RichTextLabel.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index 2962391b993..2567b64c03f 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -278,6 +278,7 @@ The label's text in BBCode format. Is not representative of manual modifications to the internal tag stack. Erases changes made by other methods when edited. + [b]Note:[/b] It is unadvised to use [code]+=[/code] operator with [code]bbcode_text[/code] (e.g. [code]bbcode_text += "some string"[/code]) as it replaces the whole text and can cause slowdowns. Use [method append_bbcode] for adding text instead.