From 25add57614ed2c2a161edbb18d09eb34863e373f Mon Sep 17 00:00:00 2001 From: Brian Merchant Date: Mon, 5 Jun 2023 13:56:49 -0700 Subject: [PATCH] Mention that default spawned primary window is spawned with `PrimaryWindow` marker component (#8752) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Objective Fixes #8751 ## Solution The doc string for the `primary_window` field on `Window` now mentions that the default spawned primary window is spawned with the `PrimaryWindow` marker component. --------- Co-authored-by: François --- crates/bevy_window/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_window/src/lib.rs b/crates/bevy_window/src/lib.rs index a647686aa9..e8c42bd340 100644 --- a/crates/bevy_window/src/lib.rs +++ b/crates/bevy_window/src/lib.rs @@ -39,8 +39,8 @@ impl Default for WindowPlugin { /// A [`Plugin`] that defines an interface for windowing support in Bevy. pub struct WindowPlugin { /// Settings for the primary window. This will be spawned by - /// default, if you want to run without a primary window you should - /// set this to `None`. + /// default, with the marker component [`PrimaryWindow`](PrimaryWindow). + /// If you want to run without a primary window you should set this to `None`. /// /// Note that if there are no windows, by default the App will exit, /// due to [`exit_on_all_closed`].