Detect when VideoPlayer has finished playing
问题 I have a MovieController class that manages videos in my project. I'm using the new video player component introduced in Unity 5.6. I would like to call a method when a movie has finished playing. So far, this method is only a Debug.Log , as you can see: using UnityEngine; using UnityEngine.Video; public class MovieController : MonoBehaviour { private VideoPlayer m_VideoPlayer; void Awake () { m_VideoPlayer = GetComponent<VideoPlayer>(); m_VideoPlayer.loopPointReached += OnMovieFinished; //