You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to setup a build process using cross-rs. Unfortunately, I have to manually specificy the BEVY_ASSET_PATH before the command. Also unfortunately, it's ran in a docker container so an absolute path is unhelpful. If I pass in BEVY_ASSET_PATH=./assets then this mod tries to load assets from its example dir (which doesn't exist). You can reproduce this now by running BEVY_ASSET_PATH=./assets cargo run and seeing the error outputs from bevy_embedded_assets.
I propose either 2 solutions.
1 - make the env var of BEVY_ASSET_PATH relative to the cargo workspace root
2 - default the value of BEVY_ASSET_PATH to be the root of the project with /assets (as that's the bevy default)
The text was updated successfully, but these errors were encountered:
dbidwell94
changed the title
Provide a default value for the asset dir
Provide a default value for the BEVY_ASSET_PATH
Oct 30, 2023
I'm trying to setup a build process using cross-rs. Unfortunately, I have to manually specificy the
BEVY_ASSET_PATH
before the command. Also unfortunately, it's ran in a docker container so an absolute path is unhelpful. If I pass inBEVY_ASSET_PATH=./assets
then this mod tries to load assets from its example dir (which doesn't exist). You can reproduce this now by runningBEVY_ASSET_PATH=./assets cargo run
and seeing the error outputs frombevy_embedded_assets
.I propose either 2 solutions.
1 - make the env var of
BEVY_ASSET_PATH
relative to the cargo workspace root2 - default the value of
BEVY_ASSET_PATH
to be the root of the project with /assets (as that's the bevy default)The text was updated successfully, but these errors were encountered: