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. Dismiss Notice

Bug Starting a DOTS project has errors in Unity.Collections

Discussion in 'Entity Component System' started by andrasbogarszabo, Sep 7, 2023.

  1. andrasbogarszabo

    andrasbogarszabo

    Joined:
    Jul 24, 2023
    Posts:
    5
    I tried to create a new project, import the dots packages, and I get these 3 errors in the screenshot.
    I tried to reimport Collections, reimport all assets, make a new project and start the setup over, nothing fixes this. I feel like importing packages dependent on eachother should just work out of the box.
     

    Attached Files:

  2. Laicasaane

    Laicasaane

    Joined:
    Apr 15, 2015
    Posts:
    288
    Use the latest version 2022.3.9, with the latest version of Entities packages (1.0.14+).
     
  3. andrasbogarszabo

    andrasbogarszabo

    Joined:
    Jul 24, 2023
    Posts:
    5
    I am using those,
    My Unity version is 2022.3.9f1 and the entities packages are up to date according to the package manager
     
  4. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,975
    Uninstall and reinstall the packages. Package Manager is confused.
     
  5. andrasbogarszabo

    andrasbogarszabo

    Joined:
    Jul 24, 2023
    Posts:
    5
    Uninstalling and reinstalling the DOTS packages in different orders and combinations does not fix the issue.
     
  6. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,975
    Which version of Entities is installed now?

    And if it is different than your original screenshot, can you capture the error message with the version you are using now?
     
  7. andrasbogarszabo

    andrasbogarszabo

    Joined:
    Jul 24, 2023
    Posts:
    5
    The version did not change since the original screenshot.
    Entities: 1.0.14
    Entities Graphics: 1.0.0 - exp.8
    Collections 2.2.0
    Hybrid Renderer 0.61.0 - preview.7
    Burst 1.8.8
    Mathematics 1.2.6
    Netcode for Entities 1.0.15
    Unity Physics 1.0.14

    According to the package manager these are the newest ones.
     
  8. Spy-Master

    Spy-Master

    Joined:
    Aug 4, 2022
    Posts:
    274
    The latest version of Entities Graphics is 1.0.14.

    Hybrid Renderer is a previous version of Entities Graphics from before it was renamed to Entities Graphics. The Hybrid Renderer package should not be installed in current projects.
     
  9. andrasbogarszabo

    andrasbogarszabo

    Joined:
    Jul 24, 2023
    Posts:
    5
    AAAhhh that fixed it thanks!
    Can you recommend current, latest guides, tutorials or anything that can help me learn this stuff?
    All that I can find is outdated
     
  10. Spy-Master

    Spy-Master

    Joined:
    Aug 4, 2022
    Posts:
    274
    There are some decent first-party samples on GitHub that get updated.
    https://github.com/Unity-Technologies/EntityComponentSystemSamples
    The package documentation mostly has reference material with a small amount of examples.
    https://docs.unity3d.com/Packages/com.unity.entities@1.0/manual/ecs-workflow-example.html