- Home /
Renderer component MovieTexture
I want to insert a video in my game using the following script:
public MovieTexture movTexture; void Start() { renderer.material.mainTexture = movTexture; movTexture.Play();
But when I press Play it gives me the error in the Main Camera is not present Renderer component, as I insert it?
in the main camera there are scripts for the menu and video ..
I've done everything! but when I press play it gives me the error that is not present the renderer
can you copy and paste the exact error? Also do you have more than one camera?
One person also said in a forum that
'#pragma strict' caused $$anonymous$$ovieTextures to throw errors
$$anonymous$$issingComponentException: There is no 'Renderer' attached to the "$$anonymous$$ain Camera" game object, but a script is trying to access it. You probably need to add a Renderer to the game object "$$anonymous$$ain Camera". Or your script needs to check if the component is attached before using it. menu.Start () (at Assets/script/menu.cs:13)