Search Unity

Resolved UIToolkit Grouped List View or List View with different kind of item templates based on item data

Discussion in 'UI Toolkit' started by jGate99, Aug 25, 2022.

  1. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,943
    Hi there,

    Are there any plans for a grouped list or a list view with different type of item templates based on data type where some items will not be selectable but some will be?

    Regards
     
    dsfgddsfgdsgd likes this.
  2. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    780
    Hi,

    I am not sure what you mean by "Grouped List View", can you give an example maybe?

    I believe there's already a way to create a different template based the data type by using the "bindItem" callback to make a decision on the item. Obviously this is not the ideal performance scenario because you don't benefit that much from pooling. In that sense we should maybe add a way for the ListView to manage different pools based on some characteristic of data type.

    Disabling selection for some items looks interesting, would you mind logging them with this form and share the link to this thread as well:
     
    jGate99 likes this.
  3. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,943
    done, thanks for consideration