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

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:
    383
    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