Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to stop a audio using audio manager by brackeys

AnirbanAnirban Member

How I can stop a playing sound by using an audio manager.

Comments

  • nasacodernasacoder Member
    edited May 2020

    Make an AudioSource outside of the methods and name it audioSource for example. Put in an if statement put audioSource.Stop();

    It will look like this

    AudioSource audioSource;

    void Start(){

    }

    void Update(){

    if(condition){

    audioSource.Stop();

    }

    }

    I hope this is what you are looking for. Tell me if this doesn't work because my computer is crashed so I can't check but I did go on Unitys Scripting API. Thanks

Sign In or Register to comment.