-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - Improve WorldQuery
docs
#5740
Conversation
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com>
Co-authored-by: James Liu <contact@jamessliu.com>
This will reflect the added context in this PR that is aware of what query items are and that they can be read-only or not.
Moved all links to the bottom of the doc comment. Links have been alphabetically ordered. Rebase notes: - After bevyengine#5205 got merged, the “Safety” section of `WorldQuery` has changed. I listed the mentioned methods for a better layout. I also removed the `WorldQuery::` prefix for readability. - I don't have enough knowledge of the previous and current state of `WorldQuery` types, so the documentation may be outdated somewhere. `WorldQuery` needs another review round.
Co-authored-by: Rob Parrett <robparrett@gmail.com>
Co-authored-by: Boxy <supbscripter@gmail.com>
Co-authored-by: Afonso Lage <lage.afonso@gmail.com>
/// | ||
/// There are many types that natively implement this trait: | ||
/// | ||
/// - **Component references.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// - **Component references.** | |
/// - **Component references (`&T` and `&mut T`).** |
Just to make it crystal clear what "Component references" mean.
/// [`With`] and [`Without`] filters can be applied to check if the queried entity contains or not a particular component. | ||
/// - **Change detection filters.** | ||
/// [`Added`] and [`Changed`] filters can be applied to detect component changes to an entity. | ||
/// - **Filter disjunction operator.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// - **Filter disjunction operator.** | |
/// - **[Filter disjunction operator](Or).** |
Might as well link directly to it from the start.
bors r+ |
Pull request successfully merged into main. Build succeeded: |
WorldQuery
docsWorldQuery
docs
# Objective - Update docs to `WorldQuery` ## Solution - See bevyengine#4989. This PR is derived from it, and limited to the `WorldQuery` item docs.
# Objective - Update docs to `WorldQuery` ## Solution - See bevyengine#4989. This PR is derived from it, and limited to the `WorldQuery` item docs.
Objective
WorldQuery
Solution
WorldQuery
item docs.