Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

EntityCommandBuffer & Dynamic Buffer suggestion

Discussion in 'Data Oriented Technology Stack' started by nttLIVE, Feb 8, 2020.

  1. nttLIVE

    nttLIVE

    Joined:
    Sep 13, 2018
    Posts:
    80
    Would it be possible to make it so that EntityCommandBuffer exposes some way to simply add an element to a Dynamic Buffer? Currently I'm using a workaround which is record everything in a Concurrent Queue and "play it back" in a IJob using DynamicBufferFromEntity to retrieve the and update the buffer. Essentially it's kind of like what ECB does but I'm always cautious about having to use DynamicBufferFromEntity.

    Maybe some one has a different pattern to share.
     
unityunity