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

Feedback Feature Request: Lambda chunk filtering

Discussion in 'Entity Component System' started by Guedez, Mar 24, 2020.

  1. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    823
    What I would really love to is to be able to pass a lambda for
    m_Group.CalculateEntityCount()
    that lets me filter chunks, and for
    job.Schedule(Groups[i], inputDependencies)

    Something maybe like
    m_Group.SetChunkFilter((ref MyChunkComponentData data)=>data.Value))

    That would solve a whole lot of problems for me
     
    Sylmerria likes this.
  2. Lucas-Meijer

    Lucas-Meijer

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    175
    We haven’t started on it yet, but Chunks.ForEach is something we’d love to add.
     
    fnuecke and Guedez like this.