Here is PG. http://babylonjs-playground.com/#QTNKM#1
When using designSize on canvas alignment properties are unusable.
There are two different use cases:
1. I manually position primitive on some point. I expect it's position to be uniformly scaled from design size to real rendering size. That one is working.
2. I do not position primitive, but I set primitive alignment. Let it be marginHAlignment = BABYLON.PrimitiveAlignment.AlignRight. In that case I expect this primitive to be stuck on the right side of the rendered canvas. That case is not working.
So, building real UI I have a problem. I can build UI panels using absolute positioning, and it will be OK, but how can I position those panels? Suppose I want one panel to be on left side of the canvas, and one on the right side - not so complex high level layout. Left one will be positioned fine, but with positioning right one I will have a problem. Big one.
@Nockawa, is there any work around for this?