Remove documentation warning on EntityCommands::insert that is no longer necessary (#3653)
# Objective - Removes warning about accidently inserting bundles with `EntityCommands::insert`, but since a component now needs to implement `Component` it is unnecessary.
This commit is contained in:
parent
bc499591c2
commit
84144c9429
@ -417,16 +417,6 @@ impl<'w, 's, 'a> EntityCommands<'w, 's, 'a> {
|
|||||||
|
|
||||||
/// Adds a single [`Component`] to the entity.
|
/// Adds a single [`Component`] to the entity.
|
||||||
///
|
///
|
||||||
/// See [`EntityMut::insert`](crate::world::EntityMut::insert) for more
|
|
||||||
/// details.
|
|
||||||
///
|
|
||||||
/// # Warning
|
|
||||||
///
|
|
||||||
/// It's possible to call this with a bundle, but this is likely not intended and
|
|
||||||
/// [`Self::insert_bundle`] should be used instead. If `with` is called with a bundle, the
|
|
||||||
/// bundle itself will be added as a component instead of the bundles' inner components each
|
|
||||||
/// being added.
|
|
||||||
///
|
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// `Self::insert` can be chained with [`Commands::spawn`].
|
/// `Self::insert` can be chained with [`Commands::spawn`].
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user