LineEdit how to get text before it is changed?

Godot Version

4.3 stable

Question

For the lineedit signal text_changed(newText),
how can I access the previous text?
LineEdit.text gives me the newText =(

I realized I can just save the new text in a variable and then access it when the text_changed is triggered.

Quite simple… idk why I didn’t realized it sooner.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.