I'm experiencing a bug that I was not yet able to reproduce in an isolated environment.
I'm using bjs 2.5 alpha.
During the loading of assets I'm creating a ScreenSpaceCanvas2D for the preloader UI in my custom loading screen (shown and hidden via a class implementing ILoadingScreen).
I created a Sprite2D bar from an image texture (image was loaded previously), and I change the scaleX of the bar according to the loading progress.
The bar is not updated accordingly. The scaleX variable is changed properly but visually it looks like it's stuck on scaleX 0 or 1. The values I pass are fine.
The bar Sprite2D is a child of a Group2D. I set the origin of the Sprite2D to (0, 0).
The bug persists even after the loading is ended if I choose for testing purposes to not hide the preloader UI.
I have no idea if this is related to the loading situation or not, I just gave as many details as possible. I tried reproducing scaling a simple Sprite2D on the playground and it worked as expected.
Any idea what might be going on here?