This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use bevy::{prelude::*, window::PresentMode, winit::WinitSettings}; | |
| /// This example illustrates the various features of Bevy UI. | |
| fn main() { | |
| App::new() | |
| .add_plugins(DefaultPlugins) | |
| // Only run the app when there is user input. This will significantly reduce CPU/GPU use. | |
| .insert_resource(WinitSettings::desktop_app()) | |
| .insert_resource(WindowDescriptor { | |
| present_mode: PresentMode::Immediate, |