0 votes

Ive looked everywhere and i cant find anything. pls help I tried $LineEdit.text but that doesn't work. i need this I just need to check what the text is in a linedit node.

Godot version v3.4.4-stable_x11.64
in Engine by (23 points)

1 Answer

+1 vote

As documented here, the text property IS the correct way to access the contents of the LineEdit node. So, if your LineEdit node is named LineEdit and it's the direct child of the node containing the script, the code you show above will work. If it's really not working for you, you'll need to provide some more details.

by (16,676 points)
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.