- Home /
MovieTexture doesn't work in Unity 5 Free
I have .mov file and it worked in Unity 4 Pro as a Movie Texture. But now in Unity 5 it doesn't work and moreover I just can't drag and drop the movie file to the texture field in the shader and I can't watch the movie file in the preview window.... so, it seems its not supported? or API changed?
FIXED: it actually works but you have to reimport the videos after updating from u4 to u5. my problem was that unity didnt recognize the video texture.
Hey man, I got the same problem. I have tried to reimport it but still does not work. Do you know another sollution?
Never$$anonymous$$d, I have managed to fix it:
It turns out that U5 editor has some trouble to read the "Strea$$anonymous$$gAssets" folder that needs to be created according to the Unity online documentation Strea$$anonymous$$gAssets. I accidently found this by creating a new material in the "Strea$$anonymous$$gAssets" folder and that could not even be recognized. The material icon in the project folder was replaced by an icon normally used for unrecognizable file types. You can fix this by re-na$$anonymous$$g the "Strea$$anonymous$$gAssets" folder by simply putting a space between the words > "Strea$$anonymous$$g Assets". This is quite odd since the documentation clearly says "Strea$$anonymous$$gAssets".
So this might be a bug in the new Unity?
I have been having this exact same problem. Im trying to import a mp4 file into the project. it plays fine in quicktime, but it does not play in the preview window. I can add it as a texture for my material, however it just shows up as black. I know i need to call it from script to play it in game, but thats not working either. I dont know what this Strea$$anonymous$$g Assets folder is but from that page you linked it seems to only be necessary for mobile. which $$anonymous$$e is not. I am using unity 5 free edition, are movie textures only supported in pro or something?
Same problem here and still looking for a solution. I tried mp4, ogv, ogg, but none of them would work; they all show a black screen at best.
Answer by npatch · Nov 04, 2015 at 07:47 AM
In case anyone else comes looking. Unity 5 uses OGG Theora so whenever you import video files it converts them to .ogv in order to play them at runtime. Moreover playback happens on the cpu so make sure you absolutely need it. @DemonicDaron, I have no idea why your .ogv didn't play but that's definitely the best asset filetype when using MovieTextures in Unity.
Answer by Amoldadu · Nov 10, 2017 at 05:01 AM
@Horz Unity easily supports to ogg file format movie...and it gives option to import it into Movie Texture. So it will be easily used in unity Personal. See below image...
Your answer