Hello everyone,
I’m trying to implement a loading screen. At the menu you press play. The loading screen appears. I’m trying to implement a flag blowing in the wind but instead a black screen appears. About nine seconds later the actual game loads. So, the functionality is there. The problem is that I’m getting a black screen. Here’s my code:
#pragma strict
var async: AsyncOperation;
var movTexture : MovieTexture;
function Start () {
async = Application.LoadLevelAsync ("Stampede");
yield async;
renderer.material.mainTexture = movTexture;
movTexture.wrapMode = TextureWrapMode.Repeat;
movTexture.loop = true;
movTexture.Play();
}
function Update () {
var progress = async.progress;
Debug.Log(async.progress);
}
My movTexture is a file of a flag blowing in the wind.
Any help is appreciated. Thank you for your time.