How to show a big space to write a string?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By usurun

When you make a String variable, it gives you a box space to write your String.
Is there a way to make the space to write my variable bigger?

Big Size

Normal Size

I don’t think those text boxes can be expanded. Can you write the variable in a text file? Maybe copy and paste the variable name into the text box?

Ertain | 2019-10-29 23:07

:bust_in_silhouette: Reply From: Calinou

You can export a string variable with a multi-line hint as follows:

# The MULTILINE setting tells the editor to show a large input
# field for editing over multiple lines.
export(String, MULTILINE) var text

You can click the “expand” icon at the right of the TextEdit to make it larger, which is more convenient for writing long texts.

See GDScript exports for more information.

:bust_in_silhouette: Reply From: luislodosm

In Godot 4:

@export_multiline var text
1 Like