Looped actions inside one frame.

I have a Level entity and LevelButton entities with level thumbnails.

Say I have 8 levels, so I need to load my level 8 times in one frame and get the thumbnail render textures back and assign them to buttons.

Level loading is done by a system or multiple systems though.

How would I do something like that without breaking ECS pattern? Manually calling systems in a loop inside level thumbnail generating system? I’m using hybrid ECS with Injection here.

You can manually invoke the system 8 times. Or, a better way in my opinion, configure another system to do that for you.

1 Like