mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
use bottom left origin for ui
This commit is contained in:
parent
a5df2ca62b
commit
a463c040d7
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::{mesh::Mesh, Camera, Renderable, OrthographicProjection, PerspectiveProjection, base_render_graph};
|
||||
use crate::{mesh::Mesh, Camera, Renderable, OrthographicProjection, PerspectiveProjection, base_render_graph, WindowOrigin};
|
||||
use bevy_asset::Handle;
|
||||
use bevy_derive::EntityArchetype;
|
||||
use bevy_transform::components::{LocalToWorld, Rotation, Scale, Translation};
|
||||
|
@ -51,7 +51,10 @@ impl OrthographicCameraEntity {
|
|||
name: Some("UiCamera".to_string()),
|
||||
..Default::default()
|
||||
},
|
||||
orthographic_projection: Default::default(),
|
||||
orthographic_projection: OrthographicProjection {
|
||||
window_origin: WindowOrigin::BottomLeft,
|
||||
..Default::default()
|
||||
},
|
||||
local_to_world: Default::default(),
|
||||
translation: Default::default(),
|
||||
rotation: Default::default(),
|
||||
|
|
Loading…
Reference in a new issue