Skip to content

Commit

Permalink
Fix imports in example
Browse files Browse the repository at this point in the history
  • Loading branch information
bardt authored and robtfm committed Jan 9, 2024
1 parent 7b6ace4 commit 87cc976
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/ui/relative_cursor_position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use bevy::{
prelude::*, render::camera::Viewport, ui::RelativeCursorPosition, winit::WinitSettings,
};
use bevy_internal::core_pipeline::clear_color::ClearColorConfig;

fn main() {
App::new()
Expand All @@ -17,10 +16,8 @@ fn main() {

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
commands.spawn(Camera2dBundle {
camera_2d: Camera2d {
clear_color: ClearColorConfig::None,
},
camera: Camera {
// Cursor position will take the viewport offset into account
viewport: Some(Viewport {
physical_position: [200, 100].into(),
physical_size: [600, 600].into(),
Expand Down

0 comments on commit 87cc976

Please sign in to comment.