Search Unity

Question AudioSource does not start on Android

Discussion in 'Audio & Video' started by Stefanovicz, Jan 20, 2022.

  1. Stefanovicz

    Stefanovicz

    Joined:
    Jan 28, 2015
    Posts:
    57
    Hello commUnity !

    I have an Audio Source that starts with my game. It works in the Unity Editor but when I build and run on my Android device: the game starts but not the music !

    -> in my settings menu, I have a button to play/stop the music. When I click on it, I can play/stop the music, so the sound itself works. The problem is just at startup.

    I also have a GDPR consent panel at startup and when it is active, I do timeScale = 0. I thought it may be related but in the same time, it still works in the Unity Editor, so I am not sure if it is really relevant...

    Does someone already encounter this weird issue ?

    Thanks in advance !