The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+8 votes

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

in Engine by (351 points)

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?

2 Answers

+13 votes
Best answer

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.

by (12,878 points)
selected by
+4 votes

In Godot 4:

@export_multiline var text
by (332 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.