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

Entities version update?

Discussion in 'Entity Component System' started by Kaegun, Dec 27, 2021.

  1. Kaegun

    Kaegun

    Joined:
    May 4, 2018
    Posts:
    15
    When can we expect a new version of the Entities package? It's going further and further out of sync with Jobs, Collections and Burst, so you can't upgrade those packages, as there is a breaking change in the Collections package that constrains you to v0.15.0-preview.21.
     
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,653
  3. Kaegun

    Kaegun

    Joined:
    May 4, 2018
    Posts:
    15
    Thanks @eizenhorn. This also informs that I need to target 2022 as the earliest version of the editor to care about if I want to focus my projects on DOTS/ECS.
     
  4. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,583
    No. First of all DOTS does not guarantee version 1.0 for 2022. Unless you don't mind for 0.5, which is most probable.

    You can start learning DOTS and make full project already, using Unity 2021 and even 2020. You better start now, if that what you aim for, as learning DOTS will take far more than a month to get decent grasp of it.
     
    Rewaken and bb8_1 like this.
  5. Kaegun

    Kaegun

    Joined:
    May 4, 2018
    Posts:
    15
    Thanks @Antypodish, I've been using 2020 and 2021 for a while. Since most of my stuff is experimental at this stage, I've been tending to play on the bleeding edge and let Unity stabilise around my projects. Given how much pain upgrading the Editor version is, I'd rather not have to go through it too often. Having said that, I'm feeling that pain right now as I try to upgrade my project from 2021 to 2022. o_O
     
  6. Kaegun

    Kaegun

    Joined:
    May 4, 2018
    Posts:
    15
    As far as I can tell, you can't use the DOTS Editor in 2022? I get the following compile error(s):

    Library\PackageCache\com.unity.dots.editor@0.12.0-preview.6\Editor\SystemSchedule\TreeView\SystemTreeView.cs(18,18): error CS0104: 'TreeView' is an ambiguous reference between 'Unity.Editor.Bridge.TreeView' and 'UnityEngine.UIElements.TreeView'


    I only pasted one, since they're all more of the same. Removing the DOTS Editor resolves the issue.
     
    tonytopper likes this.
  7. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,583
    There is no official DOTS support for Unity 2022 up to date.
     
  8. Kmsxkuse

    Kmsxkuse

    Joined:
    Feb 15, 2019
    Posts:
    297
    DOTS editor broke due to a UIToolkit API change sometime around 2022.1 Alpha 13 or 11. I dont remember the exact version when I was also forced to remove it from my packages list.

    The Entities itself, 0.17, works perfectly fine in the current 2022.1 Beta version. Im using it now. Ignore the errors in the package itself, those are the test functions and wont affect your actual build.
     
  9. Kaegun

    Kaegun

    Joined:
    May 4, 2018
    Posts:
    15
    @Kmsxkuse are you able to use the hybrid renderer? I am getting weird compile issues when I add that in. Can you use entities without it?
     
  10. Kmsxkuse

    Kmsxkuse

    Joined:
    Feb 15, 2019
    Posts:
    297
    Hybrid Renderer is strictly a 2020.3 LTS package. Moving up the tech release chain will break it.

    You can use Entities package without Hybrid Renderer by just adding com.unity.entities in your package manager.
     
    Kaegun likes this.
  11. Kaegun

    Kaegun

    Joined:
    May 4, 2018
    Posts:
    15
    Thanks @Kmsxkuse . Where would I find this information, or is just something you "know" because you're close enough to the product?
    I find it really hard to find clear references to an upgrade path for Unity, that says, this changed, or Hybrid Renderer is no longer needed. :)
     
  12. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,583
    @Kaegun DOTS and specifically Entities are not officially supported with Unity 2021 at given time.
    You should stay with Unity 2020 LTS, if you need stability and official Unity support.
     
  13. Kaegun

    Kaegun

    Joined:
    May 4, 2018
    Posts:
    15
    Thanks @Antypodish. I'm not massively worried about "official" support, my project is far from production-ready, this is mostly me getting my feet wet. As a result I am comfortable to operate at the bleeding edge, it would just be nice if there was some indicators of where the sharp edges are. From the original reply (referring to the DOTS update from early Dec), it seems that the focus is to produce a stable version of DOTS sometime in the 2022 release cycle as part of the 2022 editor. With that in mind, I'd rather use a later editor, with the pains it may entail. I'm ultimately a hobbyist, and right now more interested in learning than creating a finished and polished product. If DOTS *is* the future of Unity, I may as well put my energy into wrapping my head around it with the time I can allocate to my Unity projects.
     
  14. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,583
    No. Officials said, they will first roll in support for 2020 LTS. Then 2021 LTS. Eventually landing in 2022. But time line is not specified. So could be equally anything between years 2022 - 2023 or later.
     
    Kaegun likes this.
  15. Kaegun

    Kaegun

    Joined:
    May 4, 2018
    Posts:
    15
    Yeah, I see what you mean. 2020 LTS is the first target for 0.50.
     
  16. power6574

    power6574

    Joined:
    Apr 29, 2020
    Posts:
    6
    Hi, I think this is just move entities folder to assets folder inside, anywhere, then you can solve.

    you can find 'packages/Entities' folder .

    some errors are arised. but, you can fixed it.

    change All TreeView => Unity.Editor.Bridge.TreeView, plz.

    I check the 2022.1.22

    upload_2022-11-11_11-22-23.png
     
  17. Spy-Master

    Spy-Master

    Joined:
    Aug 4, 2022
    Posts:
    285
    Antypodish likes this.