- Home /
Question by
user-4347 (google) · Oct 06, 2010 at 12:09 AM ·
variablesoundplayingsong
How to know the time of the song?
I want to know the specific time of the song in that specific moment of the song when the song its playing and put that information to a variable, but I really dont know how to do it so first could someone tell me if its posible to do it and if its posible then tell me how to do it.
Please I need help from someone. Thaks for future :)
Comment
Answer by · Oct 06, 2010 at 12:14 AM
You can use AudioSource.time to "read current playback time or to seek to a new playback time" (in seconds) or AudioSource.timeSamples to read the time in samples.