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.
Besoin d’aide ? (ouvrir)
- Servez cette page via HTTP(S) (pas en
file://), sinon CORS bloquera les fichiers. - Activez Brotli/Gzip côté serveur pour
.unitywebet ajoutez les bons Content‑Type. Exemple d’.htaccessci‑dessous. - Sur mobile, touchez la page une fois pour déverrouiller l’audio.
# 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>