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

Where is NativeList, NativeHashMap, and others?

Discussion in 'Entity Component System' started by 5argon, May 16, 2018.

  1. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,554
    From documentation on GitHub :

    I searched in all of the examples and only found `NativeArray` and in my code the other one intellisense show is `NativeSlice`. I watched all the videos and definitely heard "NativeHashMap" mentioned in the boids demo so how can I use it? I already has reference to Unity.Entities package.
     
  2. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    you need to update your manifest file in order to install the ECS. The containers will be installed with that.
     
  3. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,554
    Ok I found it the hard way by doing some .dll digging. Those classes are actually in `Unity.Collections` I need to add to my .asmdef! I thought that I can already `using Unity.Collections` in my code means I already have everything available but that was wrong since that .dll include will add more to this namespace.