🌍 Unity
VideoPlayer 끝난건지 확인하기.
맨텀
2018. 5. 11. 10:45
출처 : https://forum.unity.com/threads/how-to-know-video-player-is-finished-playing-video.483935/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Video; public class Scene_Intro : MonoBehaviour { public VideoPlayer vid; void Start(){vid.loopPointReached += CheckOver;} void CheckOver(UnityEngine.Video.VideoPlayer vp) { print ("Video Is Over"); } } | cs |