Hello, fellow Uniters.
I am experimenting a little bit with ECS, and I managed to create a simple spawn system. It spawn a rather complex prefab (a humanoid figure with quads as childs, used for impostor works):
I spawned around 900 of this impostors, and the fps where around 80 (comparing with the 20 fps gameobjects where giving me with the same amount, that is a win!). However, there is a pair of things that are still bugging me:
-First, to convert the prefab to entity, I have to have a gameobject in scene that, via code, i procede to conver to entity and delete. If I just assign the prefab from the explorer, the entities are created, but not rendered.
-Second, if I deactivate the RenderMeshSystemV2 from the Entity debugger (as I have read from forums), the meshes continue to get drawn.
I highly suspect that these two issues are related (maybe I am doing the instances wrong), but none the tutorials and documentation I have read had given me a glimpse of what I am doing incorrectly.