- Home /
Odd Black Screen that seems to last longer then need be.
Hello I do not know how to explain my issue here since I couldn't find a way to word it and see if anyone else had the same problem. My issue is when I load the next level, it is supposed to have a movie texture play as soon as it is done loading, but it appears to me that there is a delay with what the camera sees but the movie texture just plays anyways making it jarring when watching.
I've tried this code, only difference to test out my theory is by invoking the playmovie call by 5 seconds, it still occurs.
void Start ()
{
Invoke ("PlayMovie", 5.0f);//right here
PlayerPrefs.SetInt ("Wave1DumpCompleted", 1);
}
void PlayMovie ()
{
MovieTexture movTexture = renderer.material.mainTexture as MovieTexture;
audio.Play ();
movTexture.Play ();
if (!movTexture.isPlaying)
{
Application.LoadLevel (1);
}
}
After the initial 5 seconds it seems to drag on for a while then the movietexture is visible again like 2 seconds later. Also not only has 2 seconds has passed before it is viewable, it would seem 2 seconds of clips has passed which is my qualm here. It wouldn't be so bad if the movietexture played at the beginning and delayed for 2 seconds but it makes no sense without the first 2 seconds of the clip and there's a lot of things happening. I hope I was clear and would like to thank people if they can help me through this. Thanks.
Your answer
![](https://koobas.hobune.stream/wayback/20220613190201im_/https://answers.unity.com/themes/thub/images/avi.jpg)