#0.14 -> 0.15 UI migration issue.

6 messages · Page 1 of 1 (latest)

timid loom
#

I'm trying to upgrade a UI from Bevy 14 to 15, and it's disappeared some time during the migration process.

It's a text-based HUD. I've attached the code for it, but I cannot figure out why nothing seems visible, even though it worked in bevy 14.

AI, Google, and the bevy migration guide are of no help in this case.

What might be the issue with this approach?

#

this is how it looked before in 14, I've also attached the old code. Ignore the part in the center, that is not part of the UI code.

#

As you can see the changes are rather minimal, I mostly just followed the migration guide to replace the bundles with struct components where applicable

hearty yacht
#
  • try with GlobalZindex(100) something like that
  • use bevy ui debug feature to see if the container are actually there placed with the right size and position
#

in doubt, remove all custom camera settings, just Camera2d, and enable all default featuures

timid loom
#

bevy ui debug feature
🤯