In the converttoentity component, make sure you do “convert and inject” instead of “convert and destroy”.
But if you move the underlying entity, your cube won’t move with it, so you might also want to use CopyTransformToGameObject component as well, so you can sync up the Translation/Rotation of the entity to the Transform of the original GameObject
To be fair the Entities package deal with only data and your cube did become data… what to do with the data is up to you. It is just that Hybrid Renderer could render this data.
You can use Entities for just data transformation so thats why renderer is not a dependency of Entities package.
Why would you keep the game object here? This would introduce no performance gain, as you compute not only the ECS data now, but also have to move the data onto every gameobject by the sync adding more cache misses… am I right?
Is added and configured like in several tutorials: