I got a strange behavior using the new baking system in 1.0.
The behavior was that my expected components where missing at runtime. After a bit of investigation, it seems that there are issues with the CreateEntityForGameObject in the BakedEntityData.cs, where the entity created do not match the expected one. In my case, Ithe CreateEntityForGameObject is returing a SystemInstance component:
I can reproduce this issue in only one of my subscenes. It was working until what seems until some unrelated changes (adding a single string field on an existing component).
It looks like a kind of caching issue, so I tried to to Clear the Entity cache without successes.
A bit more investigation show me that it’s the EntityManager.CreateEntity that seems to do the wrong job. You can see below that the returned entity do not match the passed archetype:
SO, for this bug, it seems to be debugging issue only where some process do the correct work after the end of the baking process, but the memory is most likely not cleaned at that point, which give great confusion while debugging.