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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

UGUI Dropdown 1000 items very slow

Discussion in 'UGUI & TextMesh Pro' started by KILEYI, Jan 7, 2017.

  1. KILEYI

    KILEYI

    Joined:
    Mar 7, 2015
    Posts:
    52
    I'm try to list all the system font I have installed,and select from list to view.
    The problem is Dropdown perform very slow,how can I fix the performance problem?
    Any switch to turn on to speed it up?
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,146
    I would question why you need 1000 fonts. Are you trying to release an app with 1k fonts that you are able to release with a commercial product?

    If you really need that much, you may have to look into a custom design. No, there is no switch.
     
  3. KILEYI

    KILEYI

    Joined:
    Mar 7, 2015
    Posts:
    52
    I dont need them all,I just download some font package from Internet to test dynamic font in Unity
    The font is not a problem,my question is how to deal with 1000 item performance of Dropdown/Combox
     
    Last edited: Jan 7, 2017
  4. Feaver1968

    Feaver1968

    Joined:
    Nov 16, 2014
    Posts:
    70
    Is the problem with instantiating all of the font gameobjects, or with performance after they are loaded? If it is instantiation you might be able to setup the drop down with 1000 or so elements in the saved scene, then iterate and set them up at runtime, adding and removing as necessary based on the players system fonts.