mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 05:03:47 +00:00
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
1 changed files with 0 additions and 10 deletions
|
@ -417,16 +417,6 @@ impl<'w, 's, 'a> EntityCommands<'w, 's, 'a> {
|
|||
|
||||
/// 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
|
||||
///
|
||||
/// `Self::insert` can be chained with [`Commands::spawn`].
|
||||
|
|
Loading…
Reference in a new issue