Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Alatriste on February 23, 2020, 10:37:50 AM

Title: Video loop counter
Post by: Alatriste on February 23, 2020, 10:37:50 AM
Hi,

What is the best way to count the number of loops of a video which is set to play as a loop? Or should just play video -> Add int -> check int -> play video... and so on?

I found this: https://answers.unity.com/questions/1283934/count-each-time-movie-clip-plays-on-a-loop.html

so perhaps it would be easier to accomplish this with a specific custom action?
Title: Re: Video loop counter
Post by: djaydino on February 23, 2020, 03:28:59 PM
Hi.
the answer on unity gets the clip time and does a wait using that time then int add 1
and check if it should continue