Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

NativeList.AddRange bug

Discussion in 'Entity Component System' started by LennartJohansen, May 6, 2018.

  1. LennartJohansen

    LennartJohansen

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

    I think there is a bug in the lastest NativeList implementation.

    I have a NativeList with a set capasity. (1024).

    In a Job I call AddRange to add a range of data from another NativeList. Somehow the Capasity turnes to 0 after this.

    If I add the same data with a loop of Add calls everything works as normal.

    Anyone else seen any behaviour like this?

    Lennart