movie texture...help wanted

Hi,

I have got some LCD screen in my environment and want to loop some videos on the screen.

I tried Avi and Mov…turn on loop (10 second clip)
but after the first run its starts at +/- 5 seconds mark. Not from the beginning…

What am I doing wrong…?

Oh yes I added script as well

This is probably a bug rather than anything you are doing wrong, but perhaps you could post your code just to make sure?

As a workaround, you might get better results if you detect when the movie has finished using the isPlaying property and then call the Stop function and set it playing again. The Stop function should rewind the movie to the start.

I found that using the code:

MovieTexture.loop = true;

rather than ticking on the option in the editor seems to work correctly.

Or try something like:

function Start () {
renderer.material.mainTexture.Play ();
MovieTexture.loop = true;

if (!MovieTexture.isPlaying)
renderer.material.mainTexture.Play ();
}