- Home /
Error on playing MovieTexture in Unity 3.1
Hi, I am new bee to this engine, So if i am asking a very basic question please excuse. Here is my problem - I am using Unity pro 3.1 (trial version), and I am trying to play a video which is playing in QuickTime Player using movie texture. But only one frame (last frame) is getting displayed with error saying - " MissingMethodException: Method not found: 'UnityEngine.Texture.Play'. at Boo.Lang.Runtime.DynamicDispatching.MethodDispatcherFactory.ProduceExtensionDispatcher () "
Please help me to resolve this.
Thanks in advance- Kiran Viraktamath
var video : GUITexture;
function Start () { video.renderer.material.mainTexture.Play();
}
Answer by DaveA · Jan 06, 2011 at 07:52 PM
Try something like what's on this page: http://unity3d.com/support/documentation/ScriptReference/MovieTexture.Play.html
Probably the mainTexture needs to be cast as a MovieTexture not just Texture (which seems odd, but worth a try)
Thanks DaveA, It is working now.... we have to cast it as $$anonymous$$ovieTexture only....
Your answer
Follow this Question
Related Questions
Change Game Graphics Options 1 Answer
Video won't play in exported game? 3 Answers
play video from iphone photo library 0 Answers
Screenshot Movie with Audio Capture 1 Answer
How do I play a full screen video? 4 Answers