Skip to content

How do I draw arbitrary things on top of UI? #11223

Closed Answered by nicopap
nicopap asked this question in Q&A
Discussion options

You must be logged in to vote

As of bevy 0.12

  1. Spawn a camera with the UiCameraConfig { show_ui: false } component on the same entity.
  2. Set the Camera::order field of the camera to something higher than the main one
  3. Give the camera a RenderLayers of whatever
  4. Give whatever you want to draw on top of UI a RenderLayers component intersecting with that of the camera.

Replies: 2 comments

Comment options

nicopap
Jan 5, 2024
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by nicopap
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets
2 participants