Fails to load image on wasm but not native ("Format error decoding Png: Invalid PNG signature., this is an error in bevy_render
.")
#8853
Answered
by
mockersf
JustAnotherCodemonkey
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
mockersf
Jun 15, 2023
Replies: 1 comment 3 replies
-
Could you check in your browser console that it's correctly sending the file? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From your screenshot, your asset folder is not served by your http server. If you're using a normal http server, you should just copy the directory. if you're using trunk, you should take a look at https://trunkrs.dev/assets/