facebook twitter hatena line email

Unity/WebGL/プログレスバー表示

提供: 初心者エンジニアの簡易メモ
2023年1月20日 (金) 01:52時点におけるAdmin (トーク | 投稿記録)による版 (ページの作成:「==WebGLでプログレスバー表示== #出力したindex.htmlに、"unity-progress-bar-full"のidが、あることを確認 #style.cssに以下スタイルがあるこ...」)

(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)
移動: 案内検索

WebGLでプログレスバー表示

  1. 出力したindex.htmlに、"unity-progress-bar-full"のidが、あることを確認
  2. style.cssに以下スタイルがあることを確認
#unity-canvas { background: #231F20 }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
  1. TemplateData内に、以下画像ファイルがあるので設置
  • progress-bar-full-dark.png
  • progress-bar-full-light.png