Skip to content

Figuring Out Zindex Between Sprites And ui Elements #14816

Answered by rparrett
Magnitus- asked this question in Q&A
Discussion options

You must be logged in to vote

Is that a deliberate decision

Yes, UI is drawn in a separate pass on top of other cameras. Messing with Transform of UI components is a sort of undefined behavior, and we don't have a way of doing arbitrary rotations of UI nodes.

It looks like you're doing a minimap? I would consider using a separate 2d camera, rendering it to a texture, and then displaying that texture in your UI with an ImageBundle. https://bevyengine.org/examples/3d-rendering/render-to-texture/ should get you most of the way there.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Magnitus-
Comment options

@Magnitus-
Comment options

Answer selected by Magnitus-
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