babydriver
joined 2 years ago
ok so I'm out of the bath.
#[derive(SystemParam)]
pub struct Sprite3dParams<'w, 's> {
pub meshes : ResMut<'w, Assets<Mesh>>,
pub materials : ResMut<'w, Assets<StandardMaterial>>,
pub images : ResMut<'w, Assets<Image>>,
pub atlases : ResMut<'w, Assets<TextureAtlas>>,
pub sr : ResMut<'w, Sprite3dRes>,
#[system_param(ignore)]
marker: PhantomData<&'s usize>,
}
It seems like Sprite3dParams is already accessing Assets<TextureAtlas>
which is why you get the the error.
So you need to either remove texture_atlases
or sprite_params
. in your system.
have you looked at this example? I won't be much help sorry :(
You should probably ask over here as well: https://github.com/FraserLee/bevy_sprite3d/issues I havent used this library before but I might take a look once Im out of the bath
What is object permanence?
I exclusively drink sparkling water