From 40b9a0ae52cd5dffbc454946b38adf0375e0e4fb Mon Sep 17 00:00:00 2001 From: poopy Date: Wed, 16 Oct 2024 17:49:43 +0200 Subject: [PATCH] register `TextFont` and `TextColor` in app type registry (#15950) # Objective `TextFont` and `TextColor` is not registered in the app type registry and serializing a scene with a a `Text2d` doesn't save the color and font of the text entity. ## Solution register `TextFont` and `TextColor` in the type registry --- crates/bevy_text/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_text/src/lib.rs b/crates/bevy_text/src/lib.rs index 9d8b664c96..8254b00c66 100644 --- a/crates/bevy_text/src/lib.rs +++ b/crates/bevy_text/src/lib.rs @@ -114,6 +114,8 @@ impl Plugin for TextPlugin { fn build(&self, app: &mut App) { app.init_asset::() .register_type::() + .register_type::() + .register_type::() .register_type::() .register_type::() .init_asset_loader::()