Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Resolved com.unity.searcher@4.0.9 ListView error

Discussion in '2020.1 Beta' started by Roobubba, Dec 5, 2019.

  1. Roobubba


    Nov 5, 2015
    And a similar error for line 65. I'm using 2020.1.0a7 and have Entities preview.4 - 0.3.0 installed.

    Commenting out lines 63-69 of SearcherControl.cs like so:
    Code (CSharp):
    1. //#if UNITY_2020_1_OR_NEWER
    2. //                m_ListView.onItemsChosen += obj => m_SelectionCallback((SearcherItem)obj.FirstOrDefault());
    3. //                m_ListView.onSelectionChange += selectedItems => m_Searcher.Adapter.OnSelectionChanged(selectedItems.OfType<SearcherItem>().ToList());
    4. //#else
    5.                 m_ListView.onItemChosen += obj => m_SelectionCallback((SearcherItem)obj);
    6.                 m_ListView.onSelectionChanged += selectedItems => m_Searcher.Adapter.OnSelectionChanged(selectedItems.OfType<SearcherItem>());
    7. //#endif
    makes this work, but this makes me deeply uneasy. Is the problem with my project or is this a unity bug (and if the latter, why has no-one mentioned it? It would break every single project on this version! Hmmm).

    Cheers in advance for any help solving this that does just involve hiding the problem under the rug like I just did o_O


    Didn't realise how out of date my version was. Apologies. Upgrading to alpha 14 fixed this.
    Last edited: Dec 5, 2019
  2. VVillStone


    Jul 27, 2019
    Hi, i have the same issue... I'm with the version 2020.1.0a8.
    I want install Entities package.

    Thank you for your future answer