• 1 Post
  • 20 Comments
Joined 3 years ago
cake
Cake day: February 17th, 2022

help-circle


















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