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

BUG: Search Unity.Collection AssemblyDefinition in Package folder

Discussion in 'Entity Component System' started by Spy-Shifty, Jul 7, 2018.

  1. Spy-Shifty

    Spy-Shifty

    Joined:
    May 5, 2011
    Posts:
    546
    Hi,

    this is more an Package Manager feature....

    If I create a assembly definition asset and I want to add references from the packages folder to it this won't work well!!!

    Especially if you want to add packages that arn't shown in the project window.
    E.g. I want to add Unity.Collections or Unity.Mathematics or something else...

    This should be fixed early!

    Thank you.

    EDIT:
    More clearly

    The problem is to find the assembly definition file within the unity editor.
    The search function is limited to the assets folder and won't search in the packages folder.
    The packages folder also don't show all packages (e.g. the Unity.Collection assets).

    A workaround to get the Unity.Collection assembly definition file, is to select the Unity.Entities assembly definition file and select from there the Unity.Collection assembly definition file.

    So it should be possible to search for assets in the package folder (maybe through an toggle option) and all packages should be shown in the package folder not just the main packages.
     
    Last edited: Jul 8, 2018
  2. capyvara

    capyvara

    Joined:
    Mar 11, 2010
    Posts:
    80
    I've been using this in my project without issues, what's the problem you're having?
     
  3. Spy-Shifty

    Spy-Shifty

    Joined:
    May 5, 2011
    Posts:
    546
    The problem is to find the assembly definition file within the unity editor.
    The search function is limited to the assets folder and won't search in the packages folder.
    The packages folder also don't show all packages (e.g. the Unity.Collection assets).

    A workaround to get the Unity.Collection assembly definition file, is to select the Unity.Entities assembly definition file and select from there the Unity.Collection assembly definition file.

    So it should be possible to search for assets in the package folder (maybe through an toggle option) and all packages should be shown in the package folder not just the main packages.
     
  4. capyvara

    capyvara

    Joined:
    Mar 11, 2010
    Posts:
    80
    Ah, yes I agree, usually I just manually edit the .asmdef and include the dependencies there since this doesn't work well.
     
  5. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,554
    I think this is a bug? In one version where ChunkArray was introduced for the first time I remembered using the dialog box and by typing `Unity.` I see Entities, Collections, etc. shows up.
     
    Spy-Shifty likes this.
  6. recursive

    recursive

    Joined:
    Jul 12, 2012
    Posts:
    669
    Yeah, I think this is a bug. It was working a few beta versions ago.
     
    Spy-Shifty likes this.
  7. Spy-Shifty

    Spy-Shifty

    Joined:
    May 5, 2011
    Posts:
    546
    Ok I've changed the title and my first post!
    Hope unity will fix this!
     
  8. Enrico-Monese

    Enrico-Monese

    Joined:
    Dec 18, 2015
    Posts:
    77
    This is in the release notes for beta 7, looks like they intentionally disabled it
    • Package Manager: Hide packages assets in object selector.
     
  9. MaDDoX

    MaDDoX

    Joined:
    Nov 10, 2009
    Posts:
    764

    Attached Files: