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

How to run the examples #218

Open
tigerplush opened this issue Dec 11, 2024 · 3 comments
Open

How to run the examples #218

tigerplush opened this issue Dec 11, 2024 · 3 comments

Comments

@tigerplush
Copy link

When I try running the examples, I found out that I have to use cargo run --bin, which then only is able to run bevy_yarnspinner_demo and generate_proto, because access_variables, custom_command, custom_function and hello_world are ambigous.

image
image

I'd expect to run the examples with cargo run --example hello_world, but no examples are available

image

If that is not possible because of the structure, could you add documentation on how to run the examples?

@janhohenheim
Copy link
Member

janhohenheim commented Dec 11, 2024

Good idea, that should be documented somewhere.
Could you try running cargo run -p yarnspinner_examples --bin hello_world?
If that doesn't work, try cargo run -p examples/bevy_yarnspinner --bin hello_world

@tigerplush
Copy link
Author

cargo run -p yarnspinner_examples --bin hello_world panics with Error in Yarn Spinner plugin: Failed to load Yarn file folder assets\dialogue. Help: Does the folder exist?

cargo run -p examples/bevy_yarnspinner --bin hello_world does output an error
error: package ID specification examples/bevy_yarnspinner looks like a file path, maybe try ...

@wiggleforlife
Copy link

@tigerplush Make sure you've downloaded the submodules as well as the main repo. git submodule update --init

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

3 participants