Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is it possible to create an entity inside of a Job that is Burst compatible?

Discussion in 'Burst' started by Fourthings, Dec 1, 2018.

?

Is it possible to create an entity inside of a Job that is Burst compatible?

  1. Yes

    0 vote(s)
    0.0%
  2. No

    3 vote(s)
    60.0%
  3. Unsure

    2 vote(s)
    40.0%
  1. Fourthings

    Fourthings

    Joined:
    Feb 15, 2010
    Posts:
    313
    Trying to spawn some entities in a job, got an error stating I can't use the EntityManager as it is a reference type, the alternative seems to be to use a barrier and command buffer, but previous forum posts state that is not Burst compatible, although I don't know if that is true in preview 11

    Is there another method?
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,752
    No, ECB is not burst compatible yet (except for destroying entities for some reason)

    Also we're on preview 21, it's something you probably want to keep updated with.
     
    Fourthings likes this.
  3. Fourthings

    Fourthings

    Joined:
    Feb 15, 2010
    Posts:
    313
    Did you mean preview 12? The version number in the package manager says 0.0.12... either way I was wrong
     
  4. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,752
    no, 0.0.12p21

    upload_2018-12-2_8-31-49.png

    You need 2018.3bX I believe to get updates.

    There's a decent api change around p14 from memory so you definitely want to keep updated.
     
    Fourthings likes this.
  5. Fourthings

    Fourthings

    Joined:
    Feb 15, 2010
    Posts:
    313
    Awesome, thanks for the info!