i folow movie texture documentation of unity
i add GUI texture game object and import a video, i can play the video on preview in inspector,
a change the texture of GUI texture,with my video and add a script like this :
function Start () {
renderer.material.mainTexture.Play ();
}
but i get eror log like this :
MissingComponentException: There is no 'Renderer' attached to the "movie" game object, but a script is trying to access it.
You probably need to add a Renderer to the game object "movie". Or your script needs to check if the component is attached before using it.
how to get/ ceck the component ??
i try
this.GetComponent(“GUItexture”).texture.Play();
nothing hapen …
:?