#Trying to draw a shape with lyons: Expected bevy_render::color::Color, found bevy::prelude::Color

8 messages · Page 1 of 1 (latest)

bold bane
#

Error shows when trying to follow the readme and do a Stroke::new(Color::BLUE, 10.0)

"the trait bevy::prelude::Bundle is not implemented for bevy_prototype_Lyon:entity:ShapeBundle, bevy_prototype_lyon::draw::Fill, bevy_prototype:lyon::draw:Stroke"

I cloned the bevy project and am running this in the Breakout example with the import added:

"use bevy_prototype_lyon::prelude::*; and adding .add_plugin(ShapePlugin)

high harness
#

third party plugins won't be compatible with the main branch of the repository.
Checking out the latest branch instead should work

bold bane
#

I started from latest, git history goes up from tag: 0.10.1, origin/release-0.10.1, origin/latest, latest

high harness
#

Huh, I'm guessing it doesn't work because cyclic dependencies are not allowed and so we end up with two different but really the same versions of bevy thinkies
I guess you'll have to do it outside of the bevy repo then.

bold bane
#

oh, is it because the breakout bevy is using the src code & the lyons uses the crate?

#

or rather, because the package name is bevy

#

bevy isn't a dependency

bold bane
#

That was the issue thanks!