c-sharp
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
}
Was this helpful?
Similar Posts