I'm currently using AssetServer to load my asset like this:
let some_texture = asset_server.load("image.png");
this is my project structure:
.
├── build.rs
...
└── src
├── assets
│ └── image.png
...
└── main.rs
build.rs is used to copy src/assets to the target/release/assets or target/debug/assets folder and does so correctly and this does work well - if I run the binary directly. but if I run the program through cargo run, cargo tries to grab the asset from the root(./assets/image.png).
How do I tell it to grab it from the correct place?