Unity 發佈webgl 網頁實現自適應效果

1、打開Unity發佈出來的WebGL內容,找到Index.html,以下圖所示:html 2、使用記事本打開該文件,原內容以下:web 3、修改該HTML後以下紅框所示內容:canvas   紅框的內容爲:①在Head裏添加以下內容webgl <script> function Reset() { var canvas = document.getElementB
相關文章
相關標籤/搜索