Multi Camera ambiguities warning and a dynamic-feature breakpoint issue #5749
-
Bevy version0.8.0 What you didCreate an Orthographic camera: commands.spawn_bundle(Camera3dBundle {
transform: Transform::from_xyz(5.0, 2.0, 5.0).looking_at(Vec3::ZERO, Vec3::Y),
projection: OrthographicProjection {
scale: 3.0,
scaling_mode: ScalingMode::FixedVertical(2.0),
..default()
}.into(),
..default()
}); And an ui camera: commands.spawn_bundle(Camera2dBundle::default()); What went wrong
How to set the priority of multiple cameras? Additional Questionbevy_dylib_xxxx.dll and std_xxxx.dll cannot found in win11, when add breakpoint and debug in Clion. I've run when disable THX A LOT! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
commands.spawn_bundle(Camera2dBundle::default()); Isn't a UI camera. You no longer need an explicit UI camera, I think? To set the priorities, you set the |
Beta Was this translation helpful? Give feedback.
-
About your additional question, I'm using VSCode on W11 and I don't use the "env": {
"CARGO_MANIFEST_DIR": "${workspaceFolder}",
"PATH": "${env:USERPROFILE}/.rustup/toolchains/nightly-x86_64-pc-windows-msvc/bin;${workspaceFolder}/target/debug/deps;${env:PATH}",
}, This works with |
Beta Was this translation helpful? Give feedback.
-
You didn't post all the code but if its anything like that I had with a .add_system(setup) it was looking to add the camera. Changing it to .add_startup_system() fixed it for me. |
Beta Was this translation helpful? Give feedback.
Isn't a UI camera. You no longer need an explicit UI camera, I think?
To set the priorities, you set the
priority
field on theCamera
component.