- Home /
Converting a video to a material
As i've been searching for a solution since days now, i would like to know if there is a way in unity5 to transform a video into an usable material.
I need this material in order to project my video using Unity's projectors (as i assume it's one way to do it).
I already tryed converting my video to a MovieTexture trought unity by selection "Movie Texture" in the inspection panel, doesn't work (maybe i've done something wrong ? The newly converted movie texture doesn't have any preview/icon, it's just a "blank file" icon representing it)
Any help/hints/guidelines much appreciated :) !
Answer by belwar · Apr 23, 2018 at 08:16 AM
You can try to create a MovieTexture with the video and then assign that texture to your material.
Gonna add it, but already tryed and this isn't working at all, you can't drag and drop the movie texture version onto a material nor can you select it using unity's explorer. Also $$anonymous$$ovieTexture is deprecated so i don't think it's a good idea to use it on the long run !
Anyways, thanks for your answer :)
$$anonymous$$ovieTexture inherits from Texture, so you should be able to assign it to a material throught material.mainTexture, right?
You got a point, but i've already found a solution (finally) to my problem tho :p and it's still deprecated so it's better not to use it on the long run :/
Your answer
Follow this Question
Related Questions
Multiple 360 VR video player in Unity 0 Answers
Is it feasible to play 4K video in Unity? 8 Answers
Playing Video When Clicked (Stay Paused In Scene) 0 Answers
Unity 5 game intro 0 Answers
Line Renderer Smooth Layout 0 Answers