Open4

WebGLビルドしたUnityゲームをレンタルサーバー上の独自ドメインで公開する

Reo-SatoooooReo-Satooooo

サーバーにファイルアップロード

  1. ドメイン直下でindex.htmlが表示される想定
  2. ファイルサイズが大きいのでFTPソフト(cyberduck)を使用

https://lolipop.jp/manual/hp/m-cyberduck/

ファイルアップロード時のトラブルシューティング

  • 楽天モバイルWi-FiでFTP-SSL接続ができない

https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q14233869774
https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q14233869774

  • FTPアクセス制限の確認

https://bibabosi-rizumu.com/ftp-permission-denied/

Reo-SatoooooReo-Satooooo

WebGLビルドのエラー関連

https://dianxnao.com/unity:webgl公開時のエラー「unable-to-parse-build-xxxxx-framework-js-gz」への対処法/
https://51n1.uk/post/web-publishing-with-unity-webgl/page1.html
https://picosy.jp/wp/unity-for-webgl-comp-build-exe/

表示されたエラーメッセージのメモ

Unable to parse Build/WebGL.framework.js.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: gzip" present. Check browser Console and Devtools Network tab to debug.
HTTP Response Header "Content-Type" configured incorrectly on the server for file Build/WebGL.wasm.gz , should be "application/wasm". Startup time performance will suffer.