Skip to content

Commit fb5851e

Browse files
almindorShatur
andauthored
Clarify parent/children relation replication (#671)
Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
1 parent dfe165d commit fb5851e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,10 @@ the desired components. See [receive markers](#receive-markers) for more details
245245
#### Component relations
246246
247247
Some components depend on each other. For example, [`ChildOf`] and [`Children`]. You can enable
248-
replication only for [`ChildOf`] and [`Children`] will be updated automatically on insertion.
249-
This will emit a [`B0004`](https://bevy.org/learn/errors/b0004) warning which can be safely ignored.
248+
replication only for [`ChildOf`] so that [`Children`] will be updated automatically on insertion.
249+
Related entities replicate like any others, so children should also have [`Replicated`].
250+
251+
Currently `ChildOf` replication emits a [`B0004`](https://bevy.org/learn/errors/b0004) warning which can be safely ignored.
250252
See [#19776](https://github.com/bevyengine/bevy/issues/19776) for more details.
251253
252254
You can also ensure that their mutations arrive in sync by using [`SyncRelatedAppExt::sync_related_entities`].

0 commit comments

Comments
 (0)