Quantcast
Channel: Questions in topic: "css"
Viewing all articles
Browse latest Browse all 78

Extend WebGL Canvas to fit browser window with respect to the game's aspect ratio,How to extend extend webGL canvas to fit browser width/height with respect to game aspect ration

$
0
0
Hi dear community, I'd like to automatically adjust the game canvas to fill the current browser window with respect to game's aspect ratio. Default canvas width is set to 720px and default canvas height is set to 1280px, so the game aspect ratio is: 16/9 So far I've tried to use: https://forum.unity.com/threads/unity-5-6-download-adaptive-full-browser-window-template.448477/ Without success. The game is definitely fullscreen now, but with extremely violated aspect ratio. Thanks in advance!

Viewing all articles
Browse latest Browse all 78

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>