Search Unity

List view optimized?

Discussion in 'UI Toolkit' started by Guedez, Sep 4, 2020.

  1. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    827
    The default list view hide/not draw items outside the view? I am talking about 3000~ items in the view but only 15~ visible at once.
     
  2. CxydaInno

    CxydaInno

    Joined:
    Sep 5, 2017
    Posts:
    14
    Yes it does only create / render only the required amount. You can specify an itemHeight and the ListView will figure out how many elements in needs to create!

    You can have a look and the ListView sample Window ->UI -> UiElements Sample -> ListView

    Best Cxyda
     
    Guedez likes this.