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.

2 Answers

2

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

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!)

@aagh MovieTexture disappeared, now you need to use VideoPlayer