Video background,Video player as background
Hi im trying to have a videoplayer as background for my game. I set the render mode to far plane and add the video but all objects i add to the scene gets behind the video?
How can i have a video as background with objects ontop of it?
Answer by Hellium · May 27, 2019 at 08:47 PM
Create another camera called
Video CameraSet the
Clear Flagsof this camera to match theClear Flagsof yourMain CameraSet the
Culling MasktoNothingIn the
Camerafield of yourVideo Playercomponent, drag & drop theVideo Camerayou've set upSet the
Clear Flagsof yourMain CameratoDepth Only
Answer by GoblinGameWorks · Oct 26, 2019 at 10:31 PM
Actually,
Hellium's reply did not work for me, instead this solution worked:
at minute 5:42
He shows how to render a video to a texture placed onto a Quad game object.
If you do this then you make a sorting layer; let's say for a 2d sprite maybe, and place the sprites layer before the Quad's layer then the videio will render behind your sprite.
Sidenote: remember to switch to 3D view and make sure your 2D sprite is not literally behind the the Quad in relationship to the camera.
Actually Hellium's answer is correct. You just need to change the Render $$anonymous$$ode to Auto in the video player component
Your answer