Baked prefab children are instantiated as flattened hierarchy

Hi,

since I’ve updated from ECS 1.0.8 to 1.0.10 I get this weird behavior where when I have a prefab with the following hierarchy:

  • Tree (has an EntityLinkGroup)
    – Bush
    – Trunk

and I instantiate it with ecb.Instantiate(prefabEntity), the object will be placed like this:

  • Tree
  • Bush
  • Trunk

The children are flattened are are just spawned in the scene. They also don’t have a “Parent” component on them.

I only notice this on some of my prefabs, but can’t seem to figure out what the issue is. Even with newly created ones I get the same issue.

If I drag them manually in the scene they work correctly. Just using the Instantiate screws up the hierarchy.
You can see this in the image attached.

Issue is, that when the root entity is moved, the supposed-to-be-children don’t move with it.

Is that a current issue? Anything that has changed that we should be aware of?

9087760--1258480--issue.png

if they are dynamic rigidbodies this is expected(hierarchical transforms are not supported with non static physics)

What do you exactly mean? This is a simple prefab with just 2 3D Cubes as children. No other components than the LinkedEntityAuthoring, MeshFilter & MeshRenderers on them.
No physics rigid bodies or anything.

Oh, they had an BoxCollider on them. This screwed some of the prefabs up. Some were working with the box collider on them