You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/bevy_extract/src/sync_world.rs
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ use bevy_ecs::{
16
16
use bevy_platform::collections::{HashMap,HashSet};
17
17
use bevy_reflect::{std_traits::ReflectDefault,Reflect};
18
18
19
-
/// A plugin that synchronizes entities with [`SyncToSubWorld`] between the main world and the render world.
19
+
/// A plugin that synchronizes entities with [`SyncToSubWorld`] between the main world and the sub world.
20
20
///
21
21
/// All entities with the [`SyncToSubWorld`] component are kept in sync. It
22
22
/// is automatically added as a required component by [`ExtractComponentPlugin`]
@@ -30,25 +30,25 @@ use bevy_reflect::{std_traits::ReflectDefault, Reflect};
30
30
/// This is called "Pipelined Rendering", see [`PipelinedRenderingPlugin`] for more information.
31
31
///
32
32
/// [`SyncWorldPlugin`] is the first thing that runs every frame and it maintains an entity-to-entity mapping
33
-
/// between the main world and the render world.
34
-
/// It does so by spawning and despawning entities in the render world, to match spawned and despawned entities in the main world.
33
+
/// between the main world and the sub world.
34
+
/// It does so by spawning and despawning entities in the sub world, to match spawned and despawned entities in the main world.
35
35
/// The link between synced entities is maintained by the [`SubEntity`] and [`MainEntity`] components.
36
36
///
37
-
/// The [`SubEntity`] contains the corresponding render world entity of a main world entity, while [`MainEntity`] contains
38
-
/// the corresponding main world entity of a render world entity.
37
+
/// The [`SubEntity`] contains the corresponding sub world entity of a main world entity, while [`MainEntity`] contains
38
+
/// the corresponding main world entity of a sub world entity.
39
39
/// For convenience, [`QueryData`](bevy_ecs::query::QueryData) implementations are provided for both components:
40
40
/// adding [`MainEntity`] to a query (without a `&`) will return the corresponding main world [`Entity`],
41
-
/// and adding [`SubEntity`] will return the corresponding render world [`Entity`].
41
+
/// and adding [`SubEntity`] will return the corresponding sub world [`Entity`].
42
42
/// If you have access to the component itself, the underlying entities can be accessed by calling `.id()`.
43
43
///
44
44
/// Synchronization is necessary preparation for extraction ([`ExtractSchedule`](crate::ExtractSchedule)), which copies over component data from the main
0 commit comments