Search Unity

No Sound in WebGL build

Discussion in 'Editor & General Support' started by Lekret, Apr 18, 2021.

  1. Lekret

    Lekret

    Joined:
    Sep 10, 2020
    Posts:
    353
    I just don't have it. In editor everything is fine, in PC standalone build everything is fine as well, but I don't have it in WebGL build. I tried itch.io and simmer.io, no sound on both platforms.
     
    Last edited: Apr 18, 2021
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,406
    so every unity webgl game is without sound, or only your build?

    check browser F12 console window for possible errors.
     
  3. Lekret

    Lekret

    Joined:
    Sep 10, 2020
    Posts:
    353
    I didn't know about console. I checked and one error was WebGL: INVALID_ENUM: getInternalformatParameter: invalid internalformat. It's the only thing from warnings that could cause such behaviour I think.

    Only my games have no sound, on both itch.io and simmer.io, seems like build don't contain audio for some reason. Other games on simmer.io for example have audio and I can hear it.
     
  4. Lekret

    Lekret

    Joined:
    Sep 10, 2020
    Posts:
    353
    mgear likes this.
  5. ibrahimylmz45

    ibrahimylmz45

    Joined:
    Apr 20, 2021
    Posts:
    3
    Merhaba. Bu sorun ile bende karşılaştım. Sorun Unity ile ilgili değildi. Google Chrome kullanıyorum. Tarayıcım sitelerdeki sesleri engelliyormuş.

    Gizlilik ve Güvenlik>Site Ayarları>Ses>Ses Çalınmasına İzin Verilen Siteler

    Bu yolu takip ederek ve oraya ses çalınmasına izin vereceğiniz siteyi ekleyerek sorunu çözebilirsiniz.