Sfoglia il codice sorgente

Warn about the importance of registering the RichTextEffect

(cherry picked from commit 23dd5d21ae41c47a2d02cf5bba5d463ce402b22a)
Hugo Locurcio 3 anni fa
parent
commit
651f8be09a
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      tutorials/ui/bbcode_in_richtextlabel.rst

+ 6 - 0
tutorials/ui/bbcode_in_richtextlabel.rst

@@ -223,6 +223,12 @@ within the editor itself. The RichTextLabel does not need to have a script attac
 nor does it need to be running in ``tool`` mode. The new effect will be activable in
 nor does it need to be running in ``tool`` mode. The new effect will be activable in
 the Inspector through the **Custom Effects** property.
 the Inspector through the **Custom Effects** property.
 
 
+.. warning::
+
+    If the custom effect is not registered within the RichTextLabel's
+    **Custom Effects** property, no effect will be visible and the original
+    tag will be left as-is.
+
 There is only one function that you need to extend: ``_process_custom_fx(char_fx)``.
 There is only one function that you need to extend: ``_process_custom_fx(char_fx)``.
 Optionally, you can also provide a custom BBCode identifier simply by adding a member
 Optionally, you can also provide a custom BBCode identifier simply by adding a member
 name ``bbcode``. The code will check the ``bbcode`` property automatically or will
 name ``bbcode``. The code will check the ``bbcode`` property automatically or will