Nilirad / bevy_prototype_lyon

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

error[E0599]: no method named `set_attribute` found for struct `Mesh` in the current scope #146

Open poradz opened 2 years ago

poradz commented 2 years ago

Hey, I get following error when I try to use the latest version 762ff4de1327a9e1f5abade018824e3b1072780c. And I can't use 0.4 because of Path-Geometry error.

Reported on windows 11, rust nightly.

error[E0599]: no method named `set_attribute` found for struct `Mesh` in the current scope
   --> C:\Users\tomek\.cargo\git\checkouts\bevy_prototype_lyon-ae009892befac619\762ff4d\src\plugin.rs:133:10
    |
133 |     mesh.set_attribute(
    |          ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `insert_attribute`

error[E0599]: no method named `set_attribute` found for struct `Mesh` in the current scope
   --> C:\Users\tomek\.cargo\git\checkouts\bevy_prototype_lyon-ae009892befac619\762ff4d\src\plugin.rs:141:10
    |
141 |     mesh.set_attribute(
    |          ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `insert_attribute`
Nilirad commented 2 years ago

If you use bevy 0.6 with the latest release of bevy_prototype_lyon you shouldn't get that error. This error is caused by a breaking change by Bevy after the release.