Avatar

babydriver

babydriver@lemmy.ml
Joined
1 posts • 17 comments
Direct message
10 points

Real

permalink
report
reply

Based

permalink
report
reply

I exclusively drink sparkling water

permalink
report
reply

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 :(

permalink
report
parent
reply

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

permalink
report
reply