Hi, so I'm doing this:
let water_splash_texture_handle = asset_server.load("sprites/weapons/water_splash.png");
water_splash_texture_handle.make_strong(&texture_atlases);
let water_splash_texture_atlas = TextureAtlas::from_grid(
water_splash_texture_handle,
Vec2::new(265.0, 378.5),
4,
2,
None,
None
);
let water_splash_texture_atlas_handle = texture_atlases.add(water_splash_texture_atlas);
I need the atlas to be strong so I can spawn the texture later, but I'm not too sure how to go about it. With this code, in the from_grid function I'm getting an expected struct bevy::prelude::Image error. What's the proper way to do this?