clarified docs for bundle removal commands (#18754)
# Objective Clarify information in the docs about the bundle removal commands. ## Solution Added information about how the intersection of components are removed.
This commit is contained in:
parent
6e147d35f2
commit
c439fdb34c
@ -1576,6 +1576,9 @@ impl<'a> EntityCommands<'a> {
|
||||
|
||||
/// Removes a [`Bundle`] of components from the entity.
|
||||
///
|
||||
/// This will remove all components that intersect with the provided bundle;
|
||||
/// the entity does not need to have all the components in the bundle.
|
||||
///
|
||||
/// This will emit a warning if the entity does not exist.
|
||||
///
|
||||
/// # Example
|
||||
@ -1617,6 +1620,9 @@ impl<'a> EntityCommands<'a> {
|
||||
|
||||
/// Removes a [`Bundle`] of components from the entity.
|
||||
///
|
||||
/// This will remove all components that intersect with the provided bundle;
|
||||
/// the entity does not need to have all the components in the bundle.
|
||||
///
|
||||
/// Unlike [`Self::remove`],
|
||||
/// this will not emit a warning if the entity does not exist.
|
||||
///
|
||||
@ -1659,6 +1665,9 @@ impl<'a> EntityCommands<'a> {
|
||||
/// Removes a [`Bundle`] of components from the entity,
|
||||
/// and also removes any components required by the components in the bundle.
|
||||
///
|
||||
/// This will remove all components that intersect with the provided bundle;
|
||||
/// the entity does not need to have all the components in the bundle.
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user