0 votes

I currently have a label hidden with hide(), however am unable to get a limit on the textedit or display the label when a limit is reached.

in Engine by (60 points)

1 Answer

0 votes
Best answer

Yes it is possible

Connect the text_changed(new_text) signal of the lineEdit

func _on_LineEdit_text_changed(new_text):
    if new_text.length() == 5:

Replacing the number 5 with your "certain number"

by (5,842 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.