-
-
Notifications
You must be signed in to change notification settings - Fork 111
Support FullScreen
kou_yeung edited this page Jun 16, 2020
·
4 revisions
WebGLInput is auto inject a custom function for fullscreen.
document.makeFullscreen('element-name')
if you want to support fullscreen. you can edit the index.html after you build it.
<div class="fullscreen" onclick="gameInstance.SetFullscreen(1)"></div>
↓
<div class="fullscreen" onclick="document.makeFullscreen('gameContainer')"></div>
<div class="fullscreen" onclick="gameInstance.SetFullscreen(1)"></div>
↓
<div class="fullscreen" onclick="document.makeFullscreen('unityContainer')"></div>