- Home /
Movie clips in unity
Is it posible to make a movie clip play in unity 3.4 at the start of the game after the unity splash screen?
Answer by Mox.du · Nov 02, 2011 at 06:50 AM
Hi,
First Import as New Asset your video clip (usually .mov, .mpg, .mpeg, .mp4, .avi, .asf). Video clip becomes Movie Texture.
Go to GameObject -> create other -> Plane.
Create new Material and drag your Movie Texture to material texture box.
Assign material to Plane.
Expand your Movie Texture (if you have an audio) and drag your audio also to plane.
Create new JavaScript and attach it also to the plane.
Add following lines to the script:
function Start(){
renderer.material.mainTexture.Play();
}
Regards.
i can't drag the movie in to the material. first it said that i need to download quick time, ok i downloaded and installed quick time. but it still don't work. i have a pro license.
UnityEngine.Texture does not have a method named Play
Your answer
Follow this Question
Related Questions
Problem streaming large movie 1 Answer
Adding Cut scenes 2 Answers
Movie Play Full Screen 2 Answers
why cannot build movie texture on android? 4 Answers
Movie Texture 0 Answers