Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity check if audio playing

if (audioSource.isPlaying)
{
	//runs if audio is currently playing
}

if (!audioSource.isPlaying)
{
	//runs if audio is not currently playing
}
 
PREVIOUS NEXT
Tagged: #unity #check #audio #playing
ADD COMMENT
Topic
Name
5+8 =