VideoPlayer 끝난건지 확인하기.


출처 : 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



댓글

Designed by JB FACTORY