How to split window #8754
How to split window
#8754
-
I want to display score or something on the window. Sprites should not go to the position where score text displayed otherwise the overlap will occur. Is there a method to split the window just like below? Or should I just create a new window? |
Beta Was this translation helpful? Give feedback.
Answered by
rlidwka
Jun 5, 2023
Replies: 1 comment 2 replies
-
You need two cameras with two different viewports. Here is an example how to do that: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sasakiyori
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need two cameras with two different viewports.
Here is an example how to do that:
https://github.com/bevyengine/bevy/blob/main/examples/3d/split_screen.rs