Hello all. I have a coroutine that waits for the length of a soundclip to finish before moving on to the next part. However, I’m having issues using this with a movie sound. I have a variable set up where I put in an audioclip, and for the audio clips I bring in myself it works. But if I put in the audio file that Unity makes when importing a video it doesn’t work. Is it possible for me to access the length of the audio clip from a movie, or just get the duration of the movie itself?
One way to solve the problem is to just check if the movie has finished already.
You would do this through (in C#, UnityScript is the same just yield instead of yield return null)
yield return null;
Thats what I am using myself as well