Skip to content
Discussion options

You must be logged in to vote

It was ..default() shenanigans.. The following works:

    let mut camera = Camera2dBundle::default();
    camera.projection.scaling_mode = ScalingMode::AutoMin {
                min_width: 640.0,
                min_height: 480.0,
    };
    commands.spawn(camera);

I didn't check the values, but I assume maybe Camera2dBundle::default() produces different default values for it's OrthographicProjection field compared to OrthographicProject::default() , but was not the case in 0.10.x.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bilowik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant