UI nodes should ignore RenderLayers
#17400
Labels
A-Reflection
Runtime information about types
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Bug
An unexpected or incorrect behavior
Bevy version
Bevy main
What you did
Added
RenderLayers::layer(1)
to the text entities in themultiple_windows
example.What went wrong
The text labels are not visible.
Additional information
The UI doesn't use
Renderlayers
instead you set a target camera using theTargetCamera
component.The example above doesn't seem that terrible. The cameras are using render layer 0, so it makes sense they wouldn't display UI nodes using render layer 1.
But if you set the second camera to render layer 1 and remove the
TargetCamera
from the second text entity both text nodes are now rendered to camera 1 on top of each other. And if you then remove the second camera, the second text node goes invisible. Which all seems like nonsense.The text was updated successfully, but these errors were encountered: