Skip to content

Commit 10e3cc7

Browse files
add missing type registration for Monitor (#16685)
# Objective ![image](https://github.com/user-attachments/assets/4b8d6a2c-86ed-4353-8133-0e0efdb3a697) make `Monitor` reflectable by default ## Solution - register type
1 parent 5b1f0b1 commit 10e3cc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/bevy_window/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ impl Plugin for WindowPlugin {
164164
.register_type::<FileDragAndDrop>()
165165
.register_type::<WindowMoved>()
166166
.register_type::<WindowThemeChanged>()
167-
.register_type::<AppLifecycle>();
167+
.register_type::<AppLifecycle>()
168+
.register_type::<Monitor>();
168169

169170
// Register window descriptor and related types
170171
app.register_type::<Window>()

0 commit comments

Comments
 (0)