You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0412]: cannot find type `Entity` in this scope
--> src\ability_state.rs:24:10
|
24 | #[derive(WorldQuery)]
| ^^^^^^^^^^ not found in this scope
|
= note: this error originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing one of these items
|
4 | use bevy::ecs::entity::Entity;
|
4 | use crate::Entity;
|
Additional information
Importing Entity, using use bevy::ecs::entity:Entity allows the macro to see it, but this is a hygiene issue because the macro should use fully qualified paths to Entity.
The text was updated successfully, but these errors were encountered:
Bevy version
0.9
What you did
Trying to derive
WorldQuery
on something.What went wrong
Got the following error:
Additional information
Importing
Entity
, usinguse bevy::ecs::entity:Entity
allows the macro to see it, but this is a hygiene issue because the macro should use fully qualified paths toEntity
.The text was updated successfully, but these errors were encountered: