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

update to bevy 0.6 #25

Merged
merged 25 commits into from
Jan 8, 2022
Merged

update to bevy 0.6 #25

merged 25 commits into from
Jan 8, 2022

Conversation

jakobhellermann
Copy link
Contributor

Opening this to avoid duplicated work in case someone else wants to use bevy_egui with bevy main.

@vihdzp
Copy link
Contributor

vihdzp commented May 20, 2021

Currently, trying to use this branch gives me the error that "the trait bound EguiPlugin: bevy::prelude::Plugin is not satisfied."

@aevyrie
Copy link
Contributor

aevyrie commented May 20, 2021

This: jakobhellermann#1 fixes that error.

@jakobhellermann
Copy link
Contributor Author

This: jakobhellermann#1 fixes that error.

Thanks!

@tbarusseau
Copy link

Thanks for putting up the branch!

Even with this modification (using the latest version of the branch bevy-main), I'm getting this same error: the trait 'bevy::prelude::Plugin' is not implemented for 'EguiPlugin'.

Any idea why?

@aevyrie
Copy link
Contributor

aevyrie commented Jun 25, 2021

Thanks for putting up the branch!

Even with this modification (using the latest version of the branch bevy-main), I'm getting this same error: the trait 'bevy::prelude::Plugin' is not implemented for 'EguiPlugin'.

Any idea why?

I just tested after updating main, with no issue. That error means the Plugin types are not equivalent (from different upstream versions). I'd suggest a cargo clean and cargo update. Also double check you are using the bevy main branch from github.

@tbarusseau
Copy link

Duh, turns out that I didn't specify branch = main in my Cargo.toml, and even though I thought I thoroughly checked that the commit of the git repositories used were the same... I was wrong!

Thanks for the sanity check aevyrie, and thanks jakobhellermann for the PR.

@vihdzp
Copy link
Contributor

vihdzp commented Jun 27, 2021

I've made my own fork of this that also updates egui to 0.13.0: https://github.com/OfficialURL/bevy_egui/tree/bevy-main

@CGMossa
Copy link

CGMossa commented Jul 29, 2021

I don't know how this is going, but I see that for example AppBuilder has been removed, so this needs to be updated here. Is it in this PR you'd do it?

@jakobhellermann
Copy link
Contributor Author

@CGMossa I rebased the branch, it should work now.

@CGMossa
Copy link

CGMossa commented Jul 29, 2021 via email

@vihdzp
Copy link
Contributor

vihdzp commented Aug 17, 2021

This branch does not currently work. It seems to want a bunch of lifetime arguments. There's relevant info here and here.

The solution seems to be renaming the 'a lifetimes to either 'w or 's.

@vihdzp
Copy link
Contributor

vihdzp commented Aug 18, 2021

I've submitted a PR to make this work in the latest Bevy commit.

@vihdzp
Copy link
Contributor

vihdzp commented Sep 4, 2021

I've bumped my branch to egui 0.14, in case anyone is interested.

@mvlabat
Copy link
Owner

mvlabat commented Sep 5, 2021

I've just published bevy_egui 0.7.0 upgrading egui to 0.14.

@korczis
Copy link

korczis commented Oct 4, 2021

Nice! Thanks for sharing. I was about ask if somebody works on this and if can summarize steps needed to achieve this?

So, please, can you write up some summary of steps needed to achieve this? Some details will be great.

I want to jump on it as soon as possible and help with it.

Thanks in advance.

@mvlabat
Copy link
Owner

mvlabat commented Dec 14, 2021

@jakobhellermann you can remove this line to make the build green again:

args: -p tracing-wasm --precise 0.2.0

It's a workaround needed for Bevy 0.5.

@Shatur
Copy link
Contributor

Shatur commented Jan 8, 2022

0.6 was released!

@jakobhellermann
Copy link
Contributor Author

I'll fix the two window example and mark the PR as ready to review 👍

@jakobhellermann jakobhellermann changed the title Bevy main update to bevy 0.6 Jan 8, 2022
@jakobhellermann jakobhellermann marked this pull request as ready for review January 8, 2022 18:28
@mvlabat
Copy link
Owner

mvlabat commented Jan 8, 2022

Just tested it, works great (in WASM as well)! Thanks so much for your work @jakobhellermann, I can't imagine following all the Bevy changes myself. @aevyrie, @TheRawMeatball, thank you for your contributions as well.

Preparing the release!

@mvlabat mvlabat merged commit 4d8b859 into mvlabat:main Jan 8, 2022
@jakobhellermann jakobhellermann deleted the bevy-main branch January 8, 2022 19:45
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

Successfully merging this pull request may close these issues.

None yet

9 participants