babydriver

joined 2 years ago
[–] [email protected] 6 points 1 year ago

I exclusively drink sparkling water

[–] [email protected] 1 points 1 year 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 :(

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (1 children)

What is object permanence?

view more: ‹ prev next ›