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.

Resolved com.unity.searcher@4.0.9 ListView error

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

  1. Roobubba

    Roobubba

    Joined:
    Nov 5, 2015
    Posts:
    29
    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

    -------------------
    EDIT

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

    VVillStone

    Joined:
    Jul 27, 2019
    Posts:
    1
    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