Sprite Renderer with IConvertGameObjectToEntity not working

I have tried converting a GameObject to entity with a sprite renderer on it and can’t seem to get it to display. Is IConvertGameObjectToEntity able to deal with sprite renderer yet? I’m using entities preview.30

1 Like

There’s no ecs support for SpriteRenderer yet but you can still use ‘Convert to Entity’ with ‘Inject’ which leaves the GameObject in scene.

Where you able to do this ? using inject does not work for me when using inside a subScene

I have not tried further since I don’t think it’s supported yet. You are welcome to try further.

Another option is to write a GameObjectConversionSystem and extract the mesh and texture from the sprite and convert it into a RenderMesh.

Hi all. There seems to be no progress. Maybe someone knows, is it possible to use GameObjectConversionUtility for instantiating entity with SpriteRenderer and 2d physics components ?