mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ use bevy_ecs::system::Resource;
|
|||
use bevy_utils::Duration;
|
||||
|
||||
/// Settings for the [`WinitPlugin`](super::WinitPlugin).
|
||||
#[derive(Debug, Resource)]
|
||||
#[derive(Debug, Resource, Clone)]
|
||||
pub struct WinitSettings {
|
||||
/// Determines how frequently the application can update when it has focus.
|
||||
pub focused_mode: UpdateMode,
|
||||
|
|
Loading…
Reference in a new issue