Skip to content

Commit 3a07612

Browse files
committed
show editor version in window title
1 parent 003e3cb commit 3a07612

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

  • crates/bevy_animation_graph_editor/src

crates/bevy_animation_graph_editor/src/lib.rs

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,25 @@ impl Plugin for AnimationGraphEditorPlugin {
4444

4545
app //
4646
.add_plugins(
47-
DefaultPlugins.set(AssetPlugin {
48-
file_path: std::fs::canonicalize(&cli.asset_source)
49-
.unwrap()
50-
.to_string_lossy()
51-
.into(),
52-
watch_for_changes_override: Some(true),
53-
..Default::default()
54-
}),
47+
DefaultPlugins
48+
.set(AssetPlugin {
49+
file_path: std::fs::canonicalize(&cli.asset_source)
50+
.unwrap()
51+
.to_string_lossy()
52+
.into(),
53+
watch_for_changes_override: Some(true),
54+
..Default::default()
55+
})
56+
.set(WindowPlugin {
57+
primary_window: Some(Window {
58+
title: format!(
59+
"Bevy Animation Graph Editor {}",
60+
env!("CARGO_PKG_VERSION")
61+
),
62+
..Default::default()
63+
}),
64+
..Default::default()
65+
}),
5566
)
5667
.add_plugins(EguiPlugin::default())
5768
.add_plugins(AnimationGraphPlugin::from_physics_schedule(FixedPostUpdate))

0 commit comments

Comments
 (0)