Search Unity

What are the differences between EntityCommandBufferSystem classes?

Discussion in 'Entity Component System' started by vectorized-runner, Feb 26, 2020.

  1. vectorized-runner

    vectorized-runner

    Joined:
    Jan 22, 2018
    Posts:
    398
    BeginInitializationEntityCommandBufferSystem
    BeginPresentationEntityCommandBufferSystem
    BeginSimulationEntityCommandBufferSystem
    EndInitializationEntityCommandBufferSystem
    EndSimulationEntityCommandBufferSystem

    How do I know which system to use to get a EntityCommandBuffer? Also there is PostUpdateCommands to use on ComponentSystems which seems to get destroyed after OnUpdate(). Do I ever need those systems when I can use PostUpdateCommands.

    As a second question, how do I know if I need to use EntityCommandBuffer or EntityCommandBuffer.Concurrent?
     
  2. siggigg

    siggigg

    Joined:
    Apr 11, 2018
    Posts:
    247