Hello Everyone!
I have a movie texture in my scene that works perfectly in editor play mode. When I build to standalone and run the exe, the movie texture doesn’t play. I also noticed after building, the movie texture seems to disappear in the editor until I run play mode again. Any ideas? I’ll make a test scene if necessary, I’m on a tight deadline with my current project. Thanks for reading! (this is beta 14 and 15)
Script to play movie texture:
using UnityEngine;
using System.Collections;
public class MoviePlay : MonoBehaviour {
private MovieTexture movTexture;
// Use this for initialization
void Start () {
movTexture = (MovieTexture)(GetComponent<Renderer>().material.mainTexture);
movTexture.loop = true;
movTexture.Play();
}
// Update is called once per frame
void Update () {
}
}
I know your code is loading the MovieTexture to an actual component whereas mine is loading into a GUITexture, but I don’t think that difference would be causing the problem.
Thanks for filing a bug report Tomza! Also thanks for replying shawn! Also I tried beta 16 with a test scene, same result as 14 and 15. I’ll try using a gui texture and see how that goes. I also tried using resources.load to apply the movie texture, no luck there either. Next thing I’ll try is a simple low res image (current movie texture is 2820x96, its for a board in a stadium) and using a guitexture.
Update:
I did try a small 256x256 2 second image to rule out too high of resolution or length. Its no big deal for right now, perhaps the next beta will have a solution