A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'Scripting' started by dtoceaneering, Sep 16, 2018.
I want to integrate autocomplete search box to list of manual user in my game.Please advice me.
Have a lost of potential entries. When the user types, after a few letters, filter the list down to options that match. LINQ's "Where" extension would be handy.
using System.Linq; // at the top
List<string> autocompleteEntries; // populate it
string input = // get it from the UI textbox
List<string> filteredEntries = autocompleteEntiries.Where(s => s.StartsWith(input)).ToList();
Now filteredEntries is a list that matches your current input for you to display.
Thanks for reply,I want to create an application like contact list for Hololnes.I don't how to create it.If you have any plugin or source code then suggest me.