Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/game-static/src/bin/editor.rs.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use bevy::{
asset::AssetPlugin,
image::{ImageAddressMode, ImagePlugin, ImageSamplerDescriptor},
prelude::*,
winit::WinitSettings,
};
use jackdaw::prelude::*;
use jackdaw::project_select::PendingAutoOpen;
Expand Down Expand Up @@ -59,7 +60,8 @@ fn main() -> AppExit {
// bevy_enhanced_input.
.add_plugins((PhysicsPlugins::default(), EnhancedInputPlugin))
.add_plugins(EditorPlugins::default())
.add_plugins({{crate_name}}::MyGamePlugin);
.add_plugins({{crate_name}}::MyGamePlugin)
.insert_resource(WinitSettings::desktop_app());

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will likely need to add this to all templates - dylibs, extensions, etc

@ThierryBerger ThierryBerger May 21, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't you want to add this to the editor itself ? rather than templates ?

(I'm ok with adding it to templates but I feel it would benefit more in the editor itself ?

oh that is the template for a standalone editor for a project 🤯 👍

Actually, if the editor embeds the main game, would it be a risk to have stutter when "play in editor" mode ? it would need to switch mode ?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i think this be baked into the editor itself i think


if let Some(root) = project_root.filter(|p| p.is_dir()) {
// `skip_build = true`: this binary IS the editor; no
Expand Down
Loading