Search code snippets, questions, articles...

Detect when VideoPlayer has finished playing

Detect when VideoPlayer has finished playing
public VideoPlayer VideoPlayer; // Drag & Drop the GameObject holding the VideoPlayer component 

     void Start() 
     {
          VideoPlayer.loopPointReached += nextFunction;
     }

     void nextFunction()
     {
         //your action
     }

Search Index Data (The code snippet can also be found with below search text)

VideoPlayer
finished playing
Unity
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet