So I have tried to rotate my WebGL canvas by 90deg, and it works … visually.
The problem is the UI input coordinate is not being rotated, it act just like it stretches to fit new canvas.
Here is the code in html file
<div style="transform: rotate(90deg);">
<canvas id="unity-canvas" width=1920 height=1080 tabindex="-1" style="width: 1920px; height: 1080px; background: #231F20; position: absolute;"></canvas>
</div>
Any idea?
Thanks in advance!