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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Installing collections, NativeList etc.

Discussion in 'Entity Component System' started by LennartJohansen, Jul 10, 2018.

  1. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Hi.

    Is there a way to install or get access to the collections like NativeLists without installing the ECS?
    I would like to use these with jobs without installing the entire ECS framework.

    Lennart
     
  2. M_R

    M_R

    Joined:
    Apr 15, 2015
    Posts:
    558
    you can manually add this to Packages/manifest.json:
    Code (JavaScript):
    1. "dependencies": {
    2.     "com.unity.collections":"0.0.9-preview.2",
    3.     "com.unity.mathematics":"0.0.12-preview.10"
    4. }
    you need to manually add mathematics because collection depends on it but it's not declared (I submitted a bug report (1057509) for that)
     
  3. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Great. Then there is a chance they will end up in the package manager also?
     
  4. xoofx

    xoofx

    Unity Technologies

    Joined:
    Nov 5, 2016
    Posts:
    412
    The dependency has been removed and should be fixed in the upcoming release of ECS.
     
    FROS7 likes this.
  5. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    The reason I ask is that I am making an asset for asset store.

    It will need burst, collections and mathematics. I guess those might get out of preview before ECS does.
    Would be nice with a way for users to get them without any manual edit...
     
  6. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,624
    You can make your plugin check their manifest and add the dependencies if they're not found.
     
  7. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Yes, but that would require the code to compile, and it would not do that before the packages are installed. Also it seems a bit messy...