![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Nugget |
im making a text editor in godot and i want to make it so the user can indent automatically after pressing enter in an if statement or function
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Nugget |
im making a text editor in godot and i want to make it so the user can indent automatically after pressing enter in an if statement or function
![]() |
Reply From: | Help me please |
for this you need to use LineEdit node and connect its text_entered signal to your script. And you might need to use this code
var any_vriable
func _on_LineEdit_textentered(newtext):
any_variable = newtext
print(any_variable)