0 votes

Hi everyone,

I'm looking to create a search bar in the game to look for specific items in the inventory, but I'm still new to Godot and I don't exactly know what control nodes to use to do just that. How would you do it?

Thank you!

in Engine by (17 points)

1 Answer

0 votes

Use a LineEdit-node and connect its text_changed-signal if you want to implement a live-search or the text_entered-signal if you want the user to confirm the query first. Both signals provide the new_text as an argument to the callback.

by (10,281 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 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 webmaster@godotengine.org with your username.