Unity: How To Play Video In UI

preview_player
Показать описание
#Unity #Tutorial #Hashtag

A video explaining the very basics on how to play a video in your game.
Рекомендации по теме
Комментарии
Автор

I've looked everywhere on the internet for this exact tutorial and no one could explain it well enough. You explained it perfectly in just a few minutes. Thank you!!!

theroddimus
Автор

genuinly such a perfectly understandable and easy to follow tutorial. if only they were all like this

MapleTrailer
Автор

This is so well done. Clear voice, concise points, and honestly more professional than pretty much any tutorials out there.

ProperDev
Автор

Thank you, you helped me a lot with my university project😭✨

Onion_rings
Автор

Thanks, just perfect, I can reach my evil goal now: rickrolling players

bombabobo
Автор

bro's a legend.. spent so much time watching other vids but this one is so simple

masonlawn
Автор

Great tutorial! Easy to follow! Only thing that was missing for me is how to make the video loop, but it is understandable that this is not included.

theelysium
Автор

It's the shortes way around the youtube. Thank you!

alexdeegames
Автор

thank you, i can finally have subway surfers and family guy funny moments on the side of my baldi decompile

The_Top_Hat_
Автор

Thanks! This was so helpful for my school project where im gonna Rick Roll everybody😈😈

DaSisku
Автор

Thank you so much mann this works like charmm

fizfizfizfiz
Автор

Awsome tutorial! Do you know how to make a video loop? Trying to make a video main menu for my game

themercifulnoob
Автор

I want after video end then the rawimage disable, how to do that? Im using visual script

stargazerch
Автор

Is ther way to do add video to material/object without viddeoplayer ?

katastrofa
Автор

I had an issue where the 'RawImage' worked fine in the editor, but when building for Android, it showed up black while the video played with audio.

As a context, I'm making a VR app, using the Oculus Integration SDK and needed to play a series of videos. I followed the steps exactly as shown in the video and to solve my problem, I assigned and created the 'RenderTexture' through code and assigned it to the 'RawImage'. Here's the code:

[SerializeField] private VideoPlayer videoPlayerObject;
[SerializeField] private RawImage rawImageObject;
[SerializeField] private VideoClip videoClip;

private void Play()
{
videoPlayerObject.clip = videoClip;
RenderTexture renderTexture = new RenderTexture((int)videoPlayerObject.clip.width, (int)videoPlayerObject.clip.height, 0);
= renderTexture;
rawImageObject.texture = renderTexture;
videoPlayerObject.Play();
}

pedroalangutierrezmontesde
Автор

Hi, I want to make a interactive movie game. There isn't lots of courses to watch and learn. I am a filmmaker but not a great developer. Can you explain to me how to do it shortly. I guess the best way to start make a whole film on one .mp4 file. After that when player click a button, it will send us to frame. Is it possible? Because I know that we can use sepereted videos. But the problem is sepereted videos lower the movie effect, lower the experience of watching. Please give an answer, I couldn't reach 'how to' videos about it. I am goint to thank you on credits. You have my word :))

artizfm
Автор

I have a question. Do you know how to do the coding aspect? Like make a video pop up when you get near it, then disappear when you aren't near it?

muatazhizam
Автор

It works well in the unity editor but when I create an android build and start the game on mobile, the image is just black, no video playing, do you know how this can be fixed?

SergiuX
Автор

how come this does not play the audio when I play the video? and how can I fix it?

vampy_vicky
Автор

Anyone know how to put the video on a seemless loop?

joebonds