How can I make an in-game search engine similar to Scribblenauts

Can someone please help, I want to make a game with a Scribblenauts style search engine where I search for a character and it will spawn. So far I have made 28 characters that are prefabs with different weapons and abilities but I need a script that will allow me to search for the characters! So for example, when I use a search engine to search for “Ninja”, It will spawn my Ninja prefab. I’m not sure how to do it so please help.

I need to make a search engine as well ... link for a online market and be able to search on more the one thing any ideer... and I need to make the list(Datebase) as well. I want to search for type (weapon, ship) Size , price and so on

@FL can you convert your comment to an answer, as this is the perfect detail for this un detailed question

1 Answer

1

Make a script with a array that contains the name and the prefab for every one. Draw a GUI page for every character and when the button is pressed, instantiate. You can use Regexp to seach through a character