0

I am working on home design project for WebGL platform.

But it doesn't fit to the window while I am changing the browser window size.

How can I fit it to browser window?

gmspacex
  • 642
  • 5
  • 12
  • Let me see if I'm understanding. You'd like to create a WebGL that is responsive to your webpage. Is that right? – Vitor Figueredo Jan 10 '18 at 04:34
  • I am working on unity project and my client want WebGL verision. and I want the screen size fit to the browser window size. – gmspacex Jan 10 '18 at 16:14
  • The only solution I can think is: You'll have to create a game that resizes with the screen. Using unity's canvas system should do the trick. After that, you'll need to resize the WebGL to fit the screen like any other element on your website. Take a look at this: https://webglfundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html – Vitor Figueredo Jan 10 '18 at 20:03
  • Also, this guy had a similar problem before: https://answers.unity.com/questions/1336800/scale-unity-webgl-canvas-to-fit-browser-window.html – Vitor Figueredo Jan 10 '18 at 20:03

0 Answers0