- Home /
How do I set a Panel Active after a video finish playing
How do I make a panel show after a video finish playing?
here is my script
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Video; using UnityEngine.UI;
public class LoadPanelAfterVideoEnds : MonoBehaviour { public VideoPlayer VideoPlayer; // Drag & Drop the GameObject holding the VideoPlayer component public GameObject Panel; void Start() { VideoPlayer.loopPointReached += LoadPanel; } public void LoadPanel(VideoPlayer vp) { Panel.gameObject.SetActive(true); } }
Your answer
Follow this Question
Related Questions
UI - clamp the movement of a panel 0 Answers
Superposing some objects in a Panel 0 Answers
Display remaining knives UI ? (knife hit style) 0 Answers
Cannot interact with image? 0 Answers
Short looping videos on Mobile platforms 0 Answers