MovieTexture ?

Hi,

Some 1 can tell a bit about MovieTexture, how it works ?!

i searsh for it in the help, it doesn’t explain how or where to find it …

i have no idea about it !!

thanks.

just drag your .mov file into unity, put it on… say a plane. and use this script

// this line of code will make the Movie Texture begin playing
renderer.material.mainTexture.Play();

or if you want a trigger play.

var sound : AudioClip;

function OnTriggerEnter (other : Collider)
{

var contact : String = other.transform.name;

if (contact == “FirstPersonController”)
{

// this line of code will make the Movie Texture begin playing
renderer.material.mainTexture.Play();
// Play sound
if (sound)
AudioSource.PlayClipAtPoint(sound, transform.position);
}
}

thanks :wink:

i gived u a tip also in ur Particle thread … GL