Search
 
SCRIPT & CODE EXAMPLE
 

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
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# square every digit of a number 
Csharp :: c# check if string is directory 
Csharp :: print unity 
Csharp :: validate base64 string c# 
Csharp :: c# datagridview color header 
Csharp :: constraint unity 2d 
Csharp :: unity how to end a game with esc 
Csharp :: c# declare inline string array 
Csharp :: c# filter non alphanumeric characters 
Csharp :: how to show a reference in unity 
Csharp :: set decimal point c# 
Csharp :: c# sort array of objects by multiple properties 
Csharp :: equivalent to T extends TT in c# 
Csharp :: unity animator current state name 
Csharp :: unity destroy self 
Csharp :: pass datatable to stored procedure c# dapper 
Csharp :: how to split list by date c# 
Csharp :: visual studio run multiple forms at once 
Csharp :: c# get all class properties 
Csharp :: unity c# delay function 
Csharp :: C# How to change the text colour? 
Csharp :: querymultiple dapper c# 
Csharp :: c# clear a textbox 
Csharp :: blazor oninitializedasync 
Csharp :: c# average of 3 numbers 
Csharp :: c# datetime to timestamp 
Csharp :: how to reference a child object unity 
Csharp :: odd or even in c# 
Csharp :: how to display an image url in c# picturebox 
Csharp :: list of string to string c# 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =