Its my first time playing a movie texture and the following gives me an error.(MovieTexture is not a member of material) Code (csharp): var movieScreen:GameObject=GameObject.Find("MovieScreen"); movieScreen.renderer.material.mainTexture.Play(); Why?
I just cut and pasted the EXACT script from the help file and that gives me thefollowing error! ' 'Play' is not a member of 'UnityEngine.Texture' Whats going on??? Code (csharp): function Start() { renderer.material.mainTexture.Play(); } ??
Is there anyone from Unity that can help me out here? I have Unity Pro and a deadline on friday which requires a movie playing. HELP!
I removed the #pragma strict from the top of my script and I get no errors. I haven't a clue why, but it works!! But then if I try to access the movie script from another script it breaks again. ???!!?
I also get MissingFieldException: Field 'UnityEngine.Texture.isPlaying' not found. Boo.Lang.Runtime.PropertyDispatcherFactory.FindExtension (IEnumerable`1 candidates) I'm pretty sure this is a Unity bug now.. Unity guys? (ever get the feeling that you are talking to yourself?)
Sorry it took a while to get back to you! The material's texture is declared as the parent Texture class. However, the Play function is specific to the MovieTexture subclass, so you need to help the compiler out a bit:- Code (csharp): var mov: MovieTexture = renderer.material.mainTexture; mov.Play();
In my case it's showing an error Assets/play.js(2,18): BCE0018: The name 'MovieTexture' does not denote a valid type ('not found').
As far as I can recall, it is not possible to use MovieTexture on mobile platforms. There is an asset that allows you to do this that may prove useful: http://forum.unity3d.com/threads/115885-Mobile-Movie-Texture
import video to android unity3d: video---- gif------apk !!! apk: http://www.xsdentalcenter.com/0/0/0/0/0/gif/seaapk.zip