- Home /
Play a video on a cube
Is it possible to play a video on a cube? Or just play a video in front of a cube so it seems to be played in the cube?
I want to make my main menu scene more dynamic. My map selection menu is pretty basic. In front of the camera there is a text saying "Select a Map" and below there are 6 cubes, each with a image of the background of it's map and it's name on it, But i want to make a video play on the cube/in front of the cube when the player pass the mouse through it.
Answer by Addyarb · Jul 23, 2016 at 09:21 PM
I really, really don't like to answer Unity Answers questions with "Just buy this asset!." Unfortunately, Unity doesn't currently support playing videos on mobile for anything else but in full screen.
The nearly de facto standard right now is this great asset.I have used it for released apps, and it works great all the time. You can even stream from remote sources with this asset.
If you can't afford that asset, you may be able to find some cheaper ones on the store. Else, you'll have to figure out how to get each frame of the video you're wanting to stream converted into a texture - and then rendering that texture to the material that is applied to your cube. If you're not too concerned about the quality, then you can probably use a gif for this application. In that case, you can simply attach a world space canvas, and then set an Image Component on the cube (on all 6 sides if you wish). Then, just render each individual frame to each Image component's sprite.
Hope this helps!
Your answer
![](https://koobas.hobune.stream/wayback/20220612085403im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Error on playing MovieTexture in Unity 3.1 1 Answer
How do you play video in unity? 5 Answers
Video texture problem? 2 Answers
Error CS0246 only in compiling and not in Scene Playback? 1 Answer