+6 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 (348 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?

1 Answer

+12 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,649 points)
selected by
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.