Nilirad / bevy_prototype_lyon

Draw 2D shapes in Bevy
Apache License 2.0
702 stars 87 forks source link

Expected bevy_render::color::Color, found bevy::prelude::Color #214

Closed quantumpotato closed 1 year ago

quantumpotato commented 1 year ago

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)

Nilirad commented 1 year ago

Sorry for the delay, but from the error type it looks like there's a mismatch between the Bevy version your crate is depending on and the Bevy version bevy_prototype_lyon is depending on.

quantumpotato commented 1 year ago

Yes, I had the issue because I was running from within the bevy example project. Thanks!