Hello, I'm new to bevy and I'm trying to put all sprite handles in a resource. The problem is that I need to access it in a startup system when creating the player entity. The way I tried to implement it was creating a startup system with access to Res<AssetServer> and created a struct with all the sprites and made it a resource with commands.insert_resource(...). (this didn't work because all the startup systems ran in parallel)
#How to make a startup system run before others?
6 messages · Page 1 of 1 (latest)
Have you tried before/after or/and labels? to load first and then render? https://bevy-cheatbook.github.io/programming/system-order.html
Using bevy asset loader might make life a bit easier, it does allot of the boilerplate for you. https://github.com/NiklasEi/bevy_asset_loader