コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.

概要

Uncaught (in promise) DOMException: play() failed because 
the user didn't interact with the document first. https://goo.gl/xX8pDD

Unity で WebGL ビルドしたら上記のエラーが発生して
Audio が再生されない現象に遭遇した

上記の記事の対応を行ったらエラーが発生しなくなった