I have a problem. How do I make a scene fill the screen no matter what resolution you have on your monitor? Using flexible layout “expand to fill” works fine on a single element but I need the entire scene to react including the picture.mouseover.hype.zip (163.1 KB)
I attached an example. This example fills 1920x1080 monitor. However if I look at it on a 4k monitor it still shows as 1920x1080
Yeah I checked that. I understand how you do it with a single element. But not multiple elements so the scene looks identical in full screen in any resolution.
Do it on your group container. No pins but enabling proportinal scale on both axis. Then activate zoom content and set it to expand to fill and your good to go.
Mate thank you so much! Removing the pins made the trick so now I understand how that works. However now it stretches too much. The scene goes outside the browser window.
You can’t fit a a square peg in a round hole. Meaning that if your proportions don’t fit your destination square you will either have to stretch (giving up the proportional lock) or choose shrink to fit or scale to fill … no way aroud it.
Shrink to fit did the trick. It works fine here: www.rasmuslinden.se/viewport but if I use embedd code in wordpress the flexible layout won’t work. I use the following code
Have a look at this page on the w3schools web site.
The vh & vw references are down the page a bit under the sub-heading “Relative Lengths”. Note that there is a “Try it” button on these lines that let’s You experiment with these CSS units.