- Home /
Movie texture is not playing correctly
I just started using movie textures, and im trying to import an mp4 over and place it on an object. When i double click the movie texture in unity, it opens quicktime and plays the video no problem. However, when i actually try to apply it to a material, its just black. Ive tried reimporting it many times but this always seems to be the case. This is the code im using to run it, im hoping that this is the problem with it.
using UnityEngine; using System.Collections;
public class movieScript : MonoBehaviour {
public MovieTexture myMovie;
// Use this for initialization
void Start () {
myMovie = GetComponent<Renderer> ().material.mainTexture as MovieTexture;
myMovie.Play ();
}
// Update is called once per frame
void Update () {
}
}
By the way, im using unity 5 free version and windows 10. Ive heard that unity 5 might have some problems with movie textures possibly?
Your answer
Follow this Question
Related Questions
movietexture imports as black screen 4 Answers
Skyboxes not perfect quality. (Unity 5) 1 Answer
Problem with all my scripts (Not Working Properly) 1 Answer
How to Import Cinema 4D model to Unity ? 0 Answers
Cant Import Videos, PLEASE HELP 7 Answers