Converting prefab to DOTS Entity

Hello,

I have a very small project that was working correctly on unity 2020.1, but its bugged when I migrated to 2020.2.

Basically the only part that doesn’t work is the conversion of a prefab into an entity:

var entityPrefab = GameObjectConversionUtility.ConvertGameObjectHierarchy(playerPrefab, GameObjectConversionSettings.FromWorld(World.DefaultGameObjectInjectionWorld, null));

var entity = em.Instantiate(entityPrefab);
em.AddComponentData(entity , new Translation { Value = new float3(3, -3.22f, 3) });
em.AddComponentData(entity , new Rotation { Value = quaternion.EulerXYZ(new float3(0f, 45f, 0f)) });

The entity is correctly created because I can see it in the dots inspector and my camera system is still following it when I update his position, but nothing is displayed on the screen. It’s supposed to be a default cylinder.

Can someone help me please?

Hi @AldoSama ,

Could you please submit a bug report with your project and reproduction steps attached and reply in here with the issue ID?

Hello @LeonhardP ,

The issue ID is : Case 1282760

Thanks.

1 Like

Thanks a lot, we’ll have a look.