EntityManagerExtensions.Instantiate(GameObject) is always empty

Hello,

I’ve been trying to spawn some entities from gameObjects prefabs with authoring components, the problem is that, no matter what, the entities are always empty, no component is associated to that entity.

I’ve seen comments of people about this problem, but didn’t get response, and also, there is no thread dedicated to this specific issue.

As the title says, all this is using the EntityManagerExtensions method

public static Entity Instantiate(this EntityManager entityManager, GameObject srcGameObject)

The documentation does not say anything about how it works, but I think it is implicit that it should convert automatically the authoring components.

So, the question here is, am I missing something? or this is indeed a bug?, or the method is not even implemented?

Unity 2019.3.14
Entities 0.11.0

What does your authoring script look like?

Just IComponentData with [GenerateAuthoringComponent] attribute.

I work correctly with those components in a lot of systems (when not created by this method) , and also the authoring component generates correctly because if I create the entity with

GameObjectConversionUtility.ConvertGameObjectHierarchy(GameObject root, GameObjectConversionSettings settings);

it just works fine