Search Unity

package installation problem with Unity Physics

Discussion in 'Entity Component System' started by mattinjersey, Mar 31, 2020.

  1. mattinjersey

    mattinjersey

    Joined:
    Dec 3, 2016
    Posts:
    42
    Hello I am trying to use Unity 2019.3.7f1 Personal.
    When I install Physics preview package I get several errors in console window.
    I tried restart Unity, delete manifest.json ... does not work.
    Screenshot attached.
    upload_2020-3-31_1-2-8.png
     
  2. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    274
    you probably have incorrect dependencies. Its easiest to only install physics and let it pull in its dependencies. In the package manager you can see a list of dependecies when Advanced=>Show dependencies is selected. When you want to change the version of an automatically added package select All Packages and find it in the list
     
  3. mattinjersey

    mattinjersey

    Joined:
    Dec 3, 2016
    Posts:
    42
    Thanks for your answer but I don’t quite understand. I opened empty project and installed the package for hybrid Ecs. Then I install physics. Then I get these errors.
    Isn’t this the correct way to install the packages?
     
  4. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    274
    I believe hybrid now has a dependency on entities 0.8. Physics still uses 0.6. So probably downgrade hybrid until physics bumps enetities version. See the lists of dependencies with Show dependencies ticked
     
  5. mattinjersey

    mattinjersey

    Joined:
    Dec 3, 2016
    Posts:
    42
    OK... I tried installing Physics first. It looks like that automatically installs Entities 0.6 and now I see no errors. Also it looks like it automatically installed HybridRenderer.
    Is that all I need to do to work with ECS?
    Thanks Matt
     
  6. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    274
    ah yes, apparently latest hybrid can run on 0.6, thats what I have here as well. You can now work with ECS yes :)
     
  7. mattinjersey

    mattinjersey

    Joined:
    Dec 3, 2016
    Posts:
    42
    should be latest physics (0.3.1)
    then need to install hybrid renderer (0.3.4).
     
  8. mattinjersey

    mattinjersey

    Joined:
    Dec 3, 2016
    Posts:
    42
    now Unity is crashing every 3rd run. not good.
     
  9. RichardWepner

    RichardWepner

    Joined:
    May 29, 2013
    Posts:
    33
    I had similar issues. Upgrading to Entities 0.8.0 caused unsatisfied dependencies. For some reason, the Collections neither got automatically upgraded, nor was I asked if I'd want to upgrade it.
    I'm currently using Physics 0.3.1, Entities 0.8.0, Collections 0.7.0, and Hybrid Renderer 0.4.0, and I don't receive any compiler or dependency errors.

    I also had some crashes in the beginning when starting the game in the editor, but I can't observe them anymore. How frequently do you have those crashes? Are you able to reproduce them with a specific set of steps?
     
  10. mattinjersey

    mattinjersey

    Joined:
    Dec 3, 2016
    Posts:
    42
     
  11. mattinjersey

    mattinjersey

    Joined:
    Dec 3, 2016
    Posts:
    42
    OK I am trying Unity 2019.3.7f1
    Used the settings that you describe above.
    I setup a cube dropping on a plane. It works once but crashed the 2nd time.
     
  12. mattinjersey

    mattinjersey

    Joined:
    Dec 3, 2016
    Posts:
    42
    seems to be working now.
    Switched to Unity 2019.3.0f1 (from Unity 2019.3.7f1)
     
  13. RichardWepner

    RichardWepner

    Joined:
    May 29, 2013
    Posts:
    33
    In my observations, it seems to always crash on the 2nd start, and doesn't crash anymore after some time. All tests I've made were in Unity 2019.3.0f6, so it seems like the version of Unity doesn't really matter.