Search Unity

Updating to Entities 0.6 or higher removes the EventSystems from UnityEngine

Discussion in 'Entity Component System' started by Opeth001, Mar 8, 2020.

  1. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    After updating the Entities Package to Entities 0.6 or 0.7 i get 999+ Errors in my project almost all of them say:

    The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?

    or

    The type or namespace name 'EventSystems' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?

    when i go back to Entities 0.5.1 all errors get fixed by themselves.

    i dont see how this error can be related to the Entities Package.

    is there a known solution ?

    Thanks.
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761
    Did you restart Unity
     
  3. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    yes, i did but nothing changes, apart that the Entities Package is ignored after Unity restarts.
     
  4. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761
    Did you update the collections package at the same time?

    For some stupid reason unity does not have collections package as part of the entities dependency but it's required (and a specific version)
     
  5. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    yes i have Collections 0.6 Installed.

    that's really weird.
     
  6. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761
    If you're using entities 0.6 i'd downgrade to collections 0.5.2p8
    If you're using entities 0.7 use collections 0.6.0p9

    (Do it in an empty project if you're having issues)
     
    Last edited: Mar 8, 2020
    Opeth001 likes this.
  7. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    creating an empty project with the latest Entities package is working like a charm, but not working with my project.
    i also installed all needed packages and ported the manifest.json to my project and still the same error.
     
  8. destructor465

    destructor465

    Joined:
    Jan 30, 2016
    Posts:
    18
    I would suggest deleting "Library" folder and let Unity to download & cache all the packages again. It solves most of the problems like this for me.
     
    Opeth001 likes this.
  9. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    Thanks @destructor465 i tried it but still the same.
     
  10. brunocoimbra

    brunocoimbra

    Joined:
    Sep 2, 2015
    Posts:
    679
    Maybe there is an error preventing the package manager to solve all the dependencies correctly? Like the usage of one of the expired APIs (like the World.Active). Had some issues with package manager related to compiler errors, but didn't had the time to create a repro project to report it.
     
    Opeth001 likes this.
  11. iamarugin

    iamarugin

    Joined:
    Dec 17, 2014
    Posts:
    883
    I had the same errors. It was because I had Newtonsoft.Json in my project and UT included it with DOTS too.
     
    Opeth001 likes this.
  12. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    I fixed it few hours ago by deleting the Nuget package.
    ( Unity Restart is required )
    Thanks guys for your help!
     
  13. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,780
    I also was trying to update from 0.2 to later version 0.3+
    So far I managed update to 0.3. Beyond that, all sorts of errors.
    Bunches of errors.
    Did you removed nuget.mono-cecil@0.1.6-preview, (or similar) from the Library folder manually?
     
  14. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    No, I had Nuget installed from the assets store, I justed removed the nuget, packages, nuget config file under the Assets folder.
     
  15. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,780
    Eh, then I got something else lurking about.
    I will wait I suppose. I don't think there is rush for later Entity package?
    Anything particular to miss from there? I feel a bit lagging behind updates.