playMaker

Author Topic: Video loop counter  (Read 810 times)

Alatriste

  • Full Member
  • ***
  • Posts: 193
Video loop counter
« 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?
« Last Edit: February 23, 2020, 10:40:24 AM by Alatriste »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Video loop counter
« Reply #1 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