Skip to content
Discussion options

You must be logged in to vote

In your code snippet, projection is actually a Mut<Projection>, so you need to dereference it:

if let Projection::Orthographic(orthographic) = *projection {
  // ...
}

Additionally, Camera3dBundle uses a default projection of Projection::Perspective, so you will either need to manually set the projection to orthographic or use Camera2dBundle instead.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@httc-jerry
Comment options

@MrGVSV
Comment options

MrGVSV Nov 2, 2022
Collaborator

@httc-jerry
Comment options

Answer selected by httc-jerry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants