Unity WebGL — Lecteur hôte
Prêt…

Dépose ici un build Unity .json + fichiers .data.unityweb, .framework.js.unityweb, .wasm.unityweb (Unity 2020+), ou configure le chemin ci‑dessous.

Configuration du build
Structure attendue: Build/MonJeu.loader.js, Build/MonJeu.data.unityweb, Build/MonJeu.framework.js.unityweb, Build/MonJeu.wasm.unityweb, Build/MonJeu.json.
Besoin d’aide ? (ouvrir)
# Exemple .htaccess (Apache)
<IfModule mod_mime.c>
  AddType application/octet-stream .data.unityweb
  AddType application/wasm          .wasm.unityweb
  AddType application/javascript    .js
  AddType application/json          .json
</IfModule>
<IfModule mod_headers.c>
  <FilesMatch "\.(data|wasm|framework)\.unityweb$">
    Header set Content-Encoding br
    Header set Cache-Control "public, max-age=31536000, immutable"
  </FilesMatch>
  <FilesMatch "\.js$">
    Header set Cache-Control "public, max-age=31536000, immutable"
  </FilesMatch>
</IfModule>