display text box in Godot engine

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ChasErnst
:warning: Old Version Published before Godot 3 was released.

The very first tutorial is a hello world in the Godot Game Engine Tutorial Series is a text box that you cannot see until you run the app. There HAS to be a way to WYSIWYG in the engine. How would you do any sort of layout if you had to hit play all the time to see it?

:bust_in_silhouette: Reply From: Calinou

By default, scripts are run only in the running project and not in the editor (this is relevant if you’re setting the text of a Label or a RichTextLabel using a script). You can however mark certain scripts as tool scripts to run them inside the editor anyway (they will be re-run when you reload the scene, which can be done after saving it, for example), but you need to make sure they will not run actual game logic.

Alternatively, you can define the text of your RichTextLabel nodes in the editor; this is not WYSIWYG (the text box in the editor will show the BBCode at all times), but the RichTextLabel displayed by the editor in the viewport will be rendered.

I couldn’t get the text to display by making it a tool but the BBCode worked. It’s not ideal but it’s closer to what I need.

ChasErnst | 2017-07-14 01:04