thanks buddy but does anyone know how to have the game object delete itself after playing and dose anyone know how to put the video to play in front of a canvas
@TRapz-uk3qc3 жыл бұрын
Hi... I added the video on an existing project. I can see the video play on scene view, but on game view I don't see it I just hear the audio
@pgcfriend6 жыл бұрын
I implemented the render texture solution a couple of months ago. Works just great using Unity 2017.2.0f3!
@mathiolia58772 жыл бұрын
how to do the same if the video is a stereo instead of a mono , it will be highly helpful to me if u can let me know ; unreal does it in an another way but i want to implement in unity;
@MatthewKrekeAuthor4 жыл бұрын
can you play online video on unity?
@guedesneuro5 жыл бұрын
Very Nice Tutorial ... do you know how to render an anaglyph video ( red and blue)???
@theyogabios2 жыл бұрын
Awesome video sir, thank you.
@innocentqwa46307 жыл бұрын
I'm having an issue where the video and the sound to the video are not synced. I followed the recommendations from the Unity Documentation that where mentioned in this video. Any ideas?
@inigoruizdeapodaca84276 жыл бұрын
Great video!!! You saved me quite a bunch of hours of work.
@Alex-vu5uu6 жыл бұрын
hi, how can I make a clickable video? for example: when I click somewhere on the video it loads another video
@tmaow6 жыл бұрын
I think you can use normal buttons to switch
@mijkolsmith6 жыл бұрын
assign a button script to the gameobject
@huntersieben11126 жыл бұрын
Video is playing but it is appearing in the background behind sprites rather than the foreground, how can i resolve this issue?
@numero7mojeangering4 жыл бұрын
Simply put your object that is rendering the texture in the foreground.
@numero7mojeangering4 жыл бұрын
In the video at 3:50 he is talking about "Render Mode", I think that's what your looking for.
@williamcousert7 жыл бұрын
Is there any way to link to videos on Google Drive or other cloud storage sites like Drop Box, iCloud or Microsoft's One Drive?
@wongmr39166 жыл бұрын
how come my player 1 & player 2 running few second only and disappear?
@lboymusic4 жыл бұрын
Hi, thanks for your great video. It was very helpful :) sorry to bother you. I already manage to play my videos, but the video is not synced with the audio. I didn't add a audio component to my video player, because it has sound. I don't have a sound board, I'm using direct. What do you think the problem might be? Could it be related to the size of my video files? What should I try? Thanks
@keissimylly45685 жыл бұрын
Hey how do I set it between my backgrounds? I've made backgrounds with sprite and I have the farthest background "Sky" and after that "Rocks" and I want the texture/video between them? Now the video plays but it's behind the "Sky" background and I want it between them. I have setup the backgrounds in layers. :)
@numero7mojeangering4 жыл бұрын
Do moving the Z axis of the transform can fix your probleme?
@numero7mojeangering4 жыл бұрын
Create a render texture, instead of Camera, at 3:50, select Render Texture, put your render texture in it. Then you can move the object that have the Render Texture where you want. I dont know what you mean by having the backgrounds in layers, are they separates game objects?. When you select Camera far plane, it will render the video in the camera but first, I suppose, and then draw everything else on top, the Camera Near Plane, I again suposes, it will render the texture when everything has drawn. So it will apear in the foreground on top of everything. Next you have Render Texture wich will render in a texture, lol, this is usefull because you can have a material with this render texture and do whatever you want with an object with a texture, I dont know if it works with sprites. But you can also make fun stuff if you know about shader coding, you can for example make your video flash, but anyway. I dont know what Material Override is or API Only, need to check Unity's page.
@johntrabelsi60666 жыл бұрын
Great video!! How do you do for the video to play only when the component is loaded? I have a Vuforia component for a video to play when target is shown, but the video starts playing as soon as it's built (I can hear the sound in the backgorund) VS when the component is shown. Thank you!!
@numero7mojeangering4 жыл бұрын
What is a "Vuforia component". A custom Script? And what exact behaviour do you expect, I can't understand. When the component load it Start the video. Simply uncheck the "Play On Awake". If you want to play when it shown, you need to create a C# Script to start the video when you want.
@supercables2515 жыл бұрын
Import settings?
@hanidew6 жыл бұрын
This is great! Btw do you have any idea how to proceed next scene using video player component after video itself is finished playing?
@hanidew6 жыл бұрын
My method worked with the time.delta but it is taxing and I felt lazy thinking more about it lol
@NebMotion5 жыл бұрын
dude this tutorial made it so simple. thank you.
@SuperJV4x6 жыл бұрын
anyone have an idea at what # simultaneous videos it starts to bog? can I play 50 videos, for example?
@haseebkhokher47386 жыл бұрын
is it for android?
@nadern97557 жыл бұрын
YOU ARE A KING!!! THANK YOU SO MUCH
@pinkhairblackman81412 жыл бұрын
you are my hero
@PHPLanceRU6 жыл бұрын
What about unity 2018?
@SasukeUchiha7236 жыл бұрын
I cant even play any video in unity 2018
@tscheydee14826 жыл бұрын
I think its not working for Unity 2018.1.2f1...
@PHPLanceRU6 жыл бұрын
Why?
@abhinaychintalapati76965 жыл бұрын
good video.. all instructions on point!
@Bess2k26 жыл бұрын
Thank you so much!! This helped me put a video in the UI! You’re the best!
@TheLucas7477 жыл бұрын
what video format are you using?
@alejandraherrerap796 жыл бұрын
I do the sample using mp4 video format
@rimi16806 жыл бұрын
It was very helpful!! Thank you!! :D
@vishalthakkar56167 жыл бұрын
Thank you I saved lot of time.
@androiddeveloper35316 жыл бұрын
Thanks So Much You Saved My Day .
@grunter966 жыл бұрын
How do I make it transition into my game? This would be very helpful! Thanks!
@venkytrillu59076 жыл бұрын
Video from url??
@Xatex187 жыл бұрын
Saved the day, thanks.
@andrewthomas57785 жыл бұрын
Super useful, thanks mate
@singletonpattern47976 жыл бұрын
Thanks ,you are the best .
@programpurpose97825 жыл бұрын
Great tutorial
@hosseinarabbeigi83775 жыл бұрын
Awesome man! saved my day!
@farooqawan98964 жыл бұрын
thanks man, but i want to Watch your tour video :D lol its kinda Awesome
@mono_solarpunk6 жыл бұрын
Awesome dude, thanks =)
@OwO_Otahon_33105 жыл бұрын
Thx a lot ,it is helpful
@_isaac_muniz_5 жыл бұрын
Creating a Quad didn't automatically created a material for me..
@thbtgg4ever6 жыл бұрын
Thank you. This saved my tesis xD ♥
@andremilanimartin33384 жыл бұрын
For those that want to run videos as a script, paste the following into a scrip and attach to a empty gameobject: var rawImage = gameObject.AddComponent(); var videoPlayer = gameObject.AddComponent(); var audioSource = gameObject.AddComponent(); var renderTexture = new RenderTexture(200,200,24); videoPlayer.targetTexture = renderTexture; gameObject.GetComponent().texture = renderTexture; // dont use Path.Combine it loves to bug out var path = Application.streamingAssetsPath + @"\Events\mllhildEvents\Images\tentacles.mp4"; videoPlayer.url = @path; videoPlayer.playOnAwake = true; videoPlayer.isLooping = true; videoPlayer.waitForFirstFrame = true; videoPlayer.renderMode = UnityEngine.Video.VideoRenderMode.RenderTexture; videoPlayer.audioOutputMode = UnityEngine.Video.VideoAudioOutputMode.AudioSource; videoPlayer.SetTargetAudioSource(0, audioSource);
@encraft79517 жыл бұрын
THANK YOU YOU ARE THE BEST
@adamwebster16526 жыл бұрын
This is no different from the other two tutorials I tried to follow on how to create video in unity3d. The comments sections are RAMMED with people who, like myself, can't explain why we are unable to drag and drop a video asset across to the right hand side menu. If you can figure that out, you'd be a legend. I've tried different file formats (All supported in the list), I've tried re-installing quickplayer, and I've tried writing C# scripts to handle it. No joy. The proposed problem is that "Free" doesn't support video and that for that you need "Pro" but everyone vehemently says that unity has changed. Which is it?
@adamwebster16526 жыл бұрын
All three of these videos (Yours included) don't say what file format and codec they used. That'd be a good start.