Unable to watch video twice

I know this seems a little childish but have been scratching my head out to fix this issue.
The script im using is this:

void OnGUI()
{
    if (!isMenuClicked)
    {
        //Menu BG
        GUI.DrawTexture(new Rect(0,0,1024,768),m_MenuBGTex );

        if (GUI.Button(new Rect(185, 450, 200, 60),m_PlayVideoButtonTex,PlayVideoButtonStyle))
            PlayMovie();
          }
   }

void PlayWalkthrough()
{
    renderer.material.mainTexture = m_LoadingScreenMovieTex;
    m_LoadingScreenMovieTex.Play();
 
    Debug.Log("PlayWalkthrough()");
    Application.LoadLevel(1);
    
}

void PlayMovie()
{
    renderer.material.mainTexture = m_GISBMovieTex;
    m_GISBMovieTex.Play();
        
}

// Update is called once per frame
void Update ()
{
    isMenuClicked = m_GISBMovieTex.isPlaying;
    Debug.Log("isMenuClicked: " + isMenuClicked);
}

The problem here is once i play the video and it gets over im not able to play the video again. Any help would be appreciated!

1 Answer

1

Try setting the wrapmode to repeat:

http://unity3d.com/support/documentation/ScriptReference/Texture-wrapMode.html?from=MovieTexture