Skip to content
Discussion options

You must be logged in to vote

It is common and performant to use queries to retrieve components for a single Entity with Query::get.

fn example_system(parent_query: Query<&Parent>) {
    if let Ok(parent) = parent_query.get(entity) {
        // ...
    }
}

If you haven't already, check out bevy-inspector-egui which is an extremely handy plugin that allows you to inspect your entities with a GUI.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Newbytee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants