Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A better default template for Unity WebGL

License

NotificationsYou must be signed in to change notification settings

greggman/better-unity-webgl-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I have no idea why Unity choose to not make its WebGL exporter defaultto filling the window like pretty much all other WebGL apps on the netbut in any case here is a template

screenshot

Example:https://greggman.github.io/better-unity-webgl-template/

Instructions 2020

Download and add inthis unity packageinto your project. Then pickEdit->Project Settings->Player, in the WebGL tabunderResolution and Presentation pick "Better2020".

ChangeAssets/WebGLTemplates/Better2020/logo.png to whatever you want.

You can also set "Hide Full Screen Button" to1 ortrue if you don't want the fullscreen button to appearin the bottom right.

SeeUnity docs on how to customize WebGL Templates.

Instructions 2019

Download and add inthis unity packageinto your project. Then pickEdit->Project Settings->Player, in the WebGL tabunderResolution and Presentation pick "BetterTemplate".

ChangeAssets/WebGLTemplates/BetterTemplate/logo.png to whatever you want.

SeeUnity docs on how to customize WebGL Templates.

Changelist

  • 0.1.0

    • Add Unity 2020
  • 0.0.3

    • Try to make mobile dialog appear above logo.

      It's a little sad that Unity hard coded this rather than make itsome kind of event and/or make the template itself handle this.The issue is there's no easy way to know if the inserted elementsare the mobile warning or something else.

      I suppose could check if the game has actually loaded. If no it'sthe mobile warning. If yes then disable the CSS. Oh well, burn thatbridge when we get there.

    • Fix logo size css

    • Add viewport tag


[8]ページ先頭

©2009-2025 Movatter.jp