- Home /
Problem with .isPlaying
Let's say for example I have a line of code...
Debug.Log(music1.isPlaying);
...which is being called in Update(). My problem is that it gets called only once, while other things get updated properly. music1 is an AudioSource type.
Do you mean you only see "true" show up once, or that you see "true" followed by a lot of "false"? It may just be that you've collapsed the log entries. It means that it won't spam the console output with duplicate entries but ins$$anonymous$$d collapse them with a number denoting how many times it have repeated.
I mean "true" appears only once. Thank you, it turned out I had my logs collapsed.
Do you destroy it after playing it? (so you get a null reference error?)
or do you even get an error?
Your answer
Follow this Question
Related Questions
PlayOneShot returns false for isPlaying 5 Answers
Android Audio Delay 0 Answers
AudioSource.IsPlaying returns true when only playing one shot? 0 Answers
Audio is always playing 0 Answers
Queueing audio 2 Answers