Hello, im trying to make vieport size static and cant find any info on how to do that. The problem is when i resize the window my wieport changing it size (see screenshots). Can anyone help? Here is my playground
Hello, im trying to make vieport size static and cant find any info on how to do that. The problem is when i resize the window my wieport changing it size (see screenshots). Can anyone help? Here is my playground
Hello! You can recalculate the desired percentage of your viewport based on your current canvas size Static camera viewport | Babylon.js Playground (babylonjs.com)
You can also use engine.onResizeObservable
to avoid calculating the canvas size every frame.
Static camera viewport | Babylon.js Playground (babylonjs.com)