mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
Mention that default spawned primary window is spawned with PrimaryWindow
marker component (#8752)
# 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 <mockersf@gmail.com>
This commit is contained in:
parent
4e25008dd6
commit
25add57614
1 changed files with 2 additions and 2 deletions
|
@ -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`].
|
||||
|
|
Loading…
Reference in a new issue