bevy icon indicating copy to clipboard operation
bevy copied to clipboard

UI only visible for one frame when used with animated sprites

Open tsukinoko-kun opened this issue 7 months ago • 1 comments

Bevy version

0.14.0

[Optional] Relevant system information

System independent.

(Tested on macOS 14.5 M2 and WASM)

What you did

Added UI overlay to gameplay.

What went wrong

UI not visible in gameplay (when 2D sprites are animated).
UI appears for one frame if I resize the window.

The same kind of UI used for the main-menu and pause-menu is working as expected.

Additional information

video recording

https://youtu.be/fPNzRPJ694c

Code: https://github.com/bloodmagesoftware/mageanoid/tree/12ec2d4637218cca65c511161e56116a254b1521

repo: https://github.com/bloodmagesoftware/mageanoid.git
commit: 12ec2d4637218cca65c511161e56116a254b1521

UI is in src/gameplay/hud.rs. Camera is in src/cam.rs.

tsukinoko-kun avatar Jul 09 '24 12:07 tsukinoko-kun