Hi,
reload_asset() is async and I don't want to add another system just to update a certain texture when I click a button. How can I make the whole game wait until the texture is successfully reloaded so I can update the material afterwards? Right now, I have to click my button twice, to update the texture.
Hot Reloading doesn't work with textures, which is why I'm doing it manually. https://github.com/bevyengine/bevy/issues/8341
asset_server.reload_asset("img/output.png");
// TODO: Wait until asset_server.get_load_state("img/output.png") == bevy::asset::LoadState::Loaded
let updated_texture = asset_server.get_handle("img/output.png");