# Objective - Reduce confusion as the example opens a window and isn't truly "headless" - Fixes https://github.com/bevyengine/bevy/issues/5260. ## Solution - Rename the example and add to the docs that the window is expected.
		
			
				
	
	
		
			18 lines
		
	
	
		
			489 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			489 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//! An application that runs with default plugins and displays an empty
 | 
						|
//! window, but without an actual renderer.
 | 
						|
//! This can be very useful for integration tests or CI.
 | 
						|
//!
 | 
						|
//! See also the `headless` example which does not display a window.
 | 
						|
 | 
						|
use bevy::{prelude::*, render::settings::WgpuSettings};
 | 
						|
 | 
						|
fn main() {
 | 
						|
    App::new()
 | 
						|
        .insert_resource(WgpuSettings {
 | 
						|
            backends: None,
 | 
						|
            ..default()
 | 
						|
        })
 | 
						|
        .add_plugins(DefaultPlugins)
 | 
						|
        .run();
 | 
						|
}
 |