-
If I've implemented // standard ggez 0.8
let mut file = ctx.fs.open(Path::new("/what/goes/here.myfile")).unwrap();
let background = MyType::from_reader(&mut file).unwrap();
// how does translate to asset_manager?
let handle = assets.load::<MyType>("what.goes.here").unwrap(); |
Beta Was this translation helpful? Give feedback.
Answered by
a1phyr
Jan 11, 2023
Replies: 1 comment 3 replies
-
This is exactly as you've shown it. Additionally, the extension is set with either |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
a1phyr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is exactly as you've shown it.
Additionally, the extension is set with either
EXTENSION
orEXTENSIONS
inAsset
trait (cf https://docs.rs/assets_manager/latest/assets_manager/asset/trait.Asset.html#provided-associated-consts)