- Home /
How to import a movie texture and apply it without stretching?
I do have unity pro and I have been importing movie textures lately, but when I insert one, if the size of the game object does not fit the video, it stretches. How can I prevent it from stretching or how can I choose the perfect game object size?
Answer by DaveA · Nov 04, 2011 at 12:40 AM
You can set the texture property to 'clamp', but best to size it right. Get the texture width and height, and use that to scale a square mesh appropriately. That is, to set the scale on the containing game object's transform which holds a square mesh. Or if you are adventurous, construct a mesh from scratch.
clamp doesn't work for me. The sizing of the target object works of course but that's really a lot of work with slideshows with multiple image sizes.
Your answer
Follow this Question
Related Questions
how to play video on android 4 Answers
Movie/Video Texture 0 Answers
Video Texture Loop 2 Answers
why cannot build movie texture on android? 4 Answers
Add a Movie Texture to UI Button 0 Answers