Hey,
My code is :
var canvass = new BABYLON.ScreenSpaceCanvas2D(scene, {
id: "ScreenCanvas",
backgroundFill: "#C0C0C040",
backgroundRoundRadius: 50
});
I was wondering if this resize behavior was normal, when the canvas is set up it fills the whole screen, i can resize it down with the window, but when the wondow gets bigger than the original size the canvas stop resizing :
Begining :
Smaller:
Larger:
The position of the sprite changes between the images, sorry if its confusing, its really the limits of the canvas as seen with rounded borders and color that matters. On the larger size, the rounded border disappear on the right: This happens if I resizes down before resizing up.
How can I make it resize to the canvas size for larger sizes ?