mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 12:13:25 +00:00
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
This commit is contained in:
parent
e4f501cb4a
commit
40b9a0ae52
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,8 @@ impl Plugin for TextPlugin {
|
|||
fn build(&self, app: &mut App) {
|
||||
app.init_asset::<Font>()
|
||||
.register_type::<Text2d>()
|
||||
.register_type::<TextFont>()
|
||||
.register_type::<TextColor>()
|
||||
.register_type::<TextSpan>()
|
||||
.register_type::<TextBounds>()
|
||||
.init_asset_loader::<FontLoader>()
|
||||
|
|
Loading…
Reference in a new issue