Search Unity

new subscence and conversion workflow ?

Discussion in 'Entity Component System' started by Silenus3, Oct 16, 2019.

  1. Silenus3

    Silenus3

    Joined:
    Jun 5, 2019
    Posts:
    20
    I've seen some previous demo's of pure and hybrid ECS , and now there is that new conversion workflow and I'm really confused about it all .

    if I understand then the conversion workflow will turn gameobjects into entity's - which is useful for the components that are not pure ECS yet like the graphics and physics - but what happens to any logic in custom script that is attached to a game object ?

    obviously the conversion workflow does not write my systems for me

    I've seen demo's were people would convert an object to entity and then also add components to it along with systems.

    but if I'm starting a new project how should I go about it ?
    first convert the game object with its graphic and physics components and then add all my custom components and systems ecs way ?
     
    Last edited: Oct 16, 2019
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,267
    You write authoring MonoBehaviours that implement IConvertGameObjectToEntity and attach your custom IComponentData. The samples have really simple examples of how to do this.
     
  3. Silenus3

    Silenus3

    Joined:
    Jun 5, 2019
    Posts:
    20
    links to the subscene samples are dead
     
  4. starikcetin

    starikcetin

    Joined:
    Dec 7, 2017
    Posts:
    340
  5. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,267