Search Unity

Question about Componentdata copy over multi systems

Discussion in 'Entity Component System' started by PackDona, Sep 11, 2019.

  1. PackDona

    PackDona

    Joined:
    Feb 3, 2018
    Posts:
    2
    If there is a EntityQuery with "LocalToWorld" component data, and Readonly query by the A_System and B_Sysetm(UpdateAfter A_System).And there is a CopyPosition job to copy this EntityQuery's entities into a NativeArray<float3> positionArrary, A_System and B_System both rely on the positionArrary.For performance concern, should I schedule the CopyPosition job twice or cache the positionArrary and then dispose after relative syetm has done.