Search Unity

BurstCompile and ECB

Discussion in 'Burst' started by ADNCG, Dec 11, 2019.

  1. ADNCG

    ADNCG

    Joined:
    Jun 9, 2014
    Posts:
    994
    I read on this thread that ECB is now supported by Burst. I can't get that to work. I'm currently working on 2019.3.0f1.

    For instance,
    Code (CSharp):
    1. CommandBuffer.SetComponent(index, Entities[index], new Translation
    2. {
    3.     Value = new float3(worldPosition.x, worldPosition.y, RootPosition.z)
    4. });
    Generates the following errors :
    I'm trying to set a few components, along with a DynamicBuffer. Everything produces errors when [Burst] is enabled.

    Any idea what's wrong?
     
  2. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    Are you using Entities 0.3.0 ?
     
    ADNCG likes this.
  3. ADNCG

    ADNCG

    Joined:
    Jun 9, 2014
    Posts:
    994
    Ah, I was running on 0.1.1. Thank you! Installing now!