Add Clone to WinitSettings (#12787)
# Objective - Allow cloning `WinitSettings`. I use this in [bevy_worldswap](https://github.com/UkoeHB/bevy_worldswap) when synchronizing secondary app window state. ## Solution - Add `Clone` to `WinitSettings`. --- ## Changelog - Added `Clone` to `WinitSettings`.
This commit is contained in:
parent
61b4b38ad0
commit
5357e15966
@ -2,7 +2,7 @@ use bevy_ecs::system::Resource;
|
|||||||
use bevy_utils::Duration;
|
use bevy_utils::Duration;
|
||||||
|
|
||||||
/// Settings for the [`WinitPlugin`](super::WinitPlugin).
|
/// Settings for the [`WinitPlugin`](super::WinitPlugin).
|
||||||
#[derive(Debug, Resource)]
|
#[derive(Debug, Resource, Clone)]
|
||||||
pub struct WinitSettings {
|
pub struct WinitSettings {
|
||||||
/// Determines how frequently the application can update when it has focus.
|
/// Determines how frequently the application can update when it has focus.
|
||||||
pub focused_mode: UpdateMode,
|
pub focused_mode: UpdateMode,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user