- Home /
Playing Video on a Game Object
How do you play video on a game object a rectangle, for example, so that it acts like a television?
i can tell you hows its done if you are not using the pro version of unity. but your video must be in broken down down in to images. if you do that name them "my videoImage_0001" and etc, if you can do that let me know and i will give you the code that plays the images
If you could paste the code in the script - not just for me - but for anyone else who has the same question as well that would be great.
Answer by Julian-Glenn · Sep 27, 2010 at 07:15 AM
If you have Pro use MovieTexture
otherwise just loop through an Array of images a' la Eric like so:
http://answers.unity3d.com/questions/6976/animate-a-guitexture
and here is a very simple script from the Wiki:
http://www.unifycommunity.com/wiki/index.php?title=Texture_swap_animator
Upvote + removing my own answer as yours is more helpful. Cheers.
Answer by aagh · Aug 03, 2017 at 06:48 AM
I have another question in this subject! What should I do when I want to do this on android? (Movietexture doesn't work and I don't want to use full screen and handheld!)
Your answer
Follow this Question
Related Questions
2-3 MovieTexture from same file, bug ?? 2 Answers
How do you move to a next scene directly when a video stops playing? 4 Answers
Knowing the position 1 Answer
How read/get Video File FrameRate? 1 Answer
Cant Import Videos, PLEASE HELP 7 Answers