Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

A filtered dropdown

Discussion in 'UGUI & TextMesh Pro' started by madks13, Mar 13, 2019.

  1. madks13

    madks13

    Joined:
    May 8, 2016
    Posts:
    173
    Hello.
    i'm working on a project where i have a UI element with several choices to choose from. The obvious choice would be a dropdown. Except for the fact that i might have a very long list of choices.

    In web development, we have filtered dropdowns, where the user can type in a part of the choice text which will then filter the displayed list. But the dropdowns available to me (either vanilla or textmeshpro) don't have the filter option.

    I've tried to use the template feature to add the filter, but it doesn't seem to work. The filter element is copied, but it can't be displayed properly.

    Is there any way to get a filtered dropdown?
    Here is a reference link to what i want to have : https://www.w3schools.com/howto/howto_js_filter_dropdown.asp

    Thanks.