Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Help Wanted How to Assigning SharedComponentData in jobs(with ECB) given i have the index of the SCD?

Discussion in 'Data Oriented Technology Stack' started by Eden1230, Jan 22, 2021.

  1. Eden1230

    Eden1230

    Joined:
    Feb 23, 2020
    Posts:
    8
    Assigning SharedComponentData in jobswith EntityCommandBuffer given i have the index of the SharedComponentData
     
  2. Eden1230

    Eden1230

    Joined:
    Feb 23, 2020
    Posts:
    8
    I have restructured my code so that entities get assigned a tag for which sharedcomponent they need. And using
    AddSharedComponentData<T>(EntityQuery, T) to assign the share component data to the entities
     
unityunity