system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
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?
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
system
2
|
|
|
|
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.
system
3
|
|
|
|
Reply From: |
luislodosm |
In Godot 4:
@export_multiline var text
2 Likes