I'm facing a problem, please help me if it is possible.
I'm practicing unity and I'm trying to make sth for myself. And I'm playing a video using UI and canvas raw image and what I need is this:
I want to tell animator to start a special animation when the movie reaches a specific frame or time for example when it reaches at 10 seconds I want to make the movie stop and that animation be triggered.
I don't have any problem with playing or pausing my video or triggering animations in animators...
My problem is that I don't know how to get the number of current frame playing in movie using script
I tried using time functions to solve my problem but it has two disadvantages , first its not accurate !! each time it results in a small different out come and I don know exactly why , second it becomes hard if I change something else for example actions before that movie
In short my question is this: is there any way to get the current frame number of a movie using script in unity ? ( a movie which is playing using UI and canvas and raw image )
Thanks a lot in advance...