- Home /
Want to play Handheld.Playfullscreenmovie aftr a delay
I'm new to Unity and C# - building an AR app using Unity and Vuforia. What I want to do is play multiple full screen videos after a delay - for example, app starts up, plays a full screen video after 5 mins, another one after 10 mins and so on.
I'm assuming doing this with handheld.playfullscreenmovie and a coroutine would be the best way, but I can't seem to get it to work. I've managed to get handheld.playfullscreenmovie to work on detection of an image target - but I want it to operate independently of that after a time delay. I've tried the following but when I build it to the iPad nothing happens:
IEnumerator Example()
{
yield return new WaitForSecondsRealtime(5);
Handheld.PlayFullScreenMovie("river.m4v", Color.black, FullScreenMovieControlMode.Hidden, FullScreenMovieScalingMode.AspectFit);
}
}
I have it attached to an empty game object and call it as
void Start()
{
StartCoroutine(Example());
}
Your answer
Follow this Question
Related Questions
Delay LoadLevel when detecting AR image 0 Answers
Cloud recognition in Vuforia 0 Answers
Reloading delay problem.. 0 Answers
Multipurpose CameraRig - Smooth Movement - how to achieve? 1 Answer
Gradually decreasing float over time 1 Answer