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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Feedback Why chunk component data doesn't use specific interface?

Discussion in 'Data Oriented Technology Stack' started by RamType0, Dec 21, 2020.

  1. RamType0

    RamType0

    Joined:
    Sep 11, 2018
    Posts:
    57
    When we working with chunk component data, it is defined with exactly same interface with general data, IComponentData.
    But it behaves completely different with general data, and confusing them will be resulted in unexpected behaviour.
    Assigning specific interface, such as IChunkComponentData seems to be better.
     
  2. brunocoimbra

    brunocoimbra

    Joined:
    Sep 2, 2015
    Posts:
    646
    They don't behave differently at all, the only difference here is that you either attach it to an Entity or to a Chunk.