Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a default value for the BEVY_ASSET_PATH #14

Open
dbidwell94 opened this issue Oct 30, 2023 · 0 comments
Open

Provide a default value for the BEVY_ASSET_PATH #14

dbidwell94 opened this issue Oct 30, 2023 · 0 comments

Comments

@dbidwell94
Copy link

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)

@dbidwell94 dbidwell94 changed the title Provide a default value for the asset dir Provide a default value for the BEVY_ASSET_PATH Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant