-
Bevy versionmain What went wrongWe now have the DefaultImageSampler resource, which I would have thought is a way for users to specify a different default sampler for new sprites. However because the tuple field is If we're not meant to change this resource why is it publicly visible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You should set the The bevy/crates/bevy_render/src/texture/mod.rs Lines 73 to 76 in 8b27124 Notice that |
Beta Was this translation helpful? Give feedback.
You should set the
default_sampler
field onImageSettings
.The
DefaultImageSampler
gets set based on that:bevy/crates/bevy_render/src/texture/mod.rs
Lines 73 to 76 in 8b27124
Notice that
ImageSettings
is a main world resource, whereasDefaultImageSampler
is a render world resource.