- Home /
Playing fullscreen movies on PC
We want to play an intro/ending for our game as a fullscreen movie. When we try to play a high quality movie using MovieTexture, however, the game lags very badly on a very strong PC. I guess the fact that unity renders it into a 3D object instead of directly through the graphics driver has it's costs.
Is there any way to play it so that it takes up the entire game window and without so much lag? Sounds like something pretty basic, lot's of made with Unity games have great intros... How is it done?
Answer by Saryk360 · Jun 22, 2017 at 02:32 PM
Check the Video Player component, set the Render Mode to play "on Camera Near Plane"
https://docs.google.com/document/d/1XbIoshFlm6F15hYGRP0IkhiFQzS_Vnk5i0UY-IzyiZw/edit https://docs.unity3d.com/ScriptReference/Video.VideoPlayer.html
Hmm, I'm on an older version of Unity. Does this not lag like putting a RenderTexture into a plane / GUI RawImage?
How old is your version ? It doesn't lag though, it's smooth af :)
Answer by kami1339 · May 09, 2019 at 01:05 PM
Video is played back at a good speed 1-make empty game object. 2-Add video (By video player) player to it. 3-Set Render mode to: Your gameobject >video player> Camera Far Plane 4-Set camera to: Your gameobject >video player> Your Camera. Haven't sound? Make an empty Audio Source for your gameobject (don't add AudioClip).
This is very usefull thanks. It works on play. Now how to play this movie from the Script. I am creating "intro" button that should play the video
Your answer
Follow this Question
Related Questions
Movie Textures not working - "Not ready to play" (Unity Pro) 0 Answers
Coin Magnet Performance Issue Mobile 3 Answers
Does Unity's Dictionary performance depend on number of dictionaries? 0 Answers
Sendmessage performance 3 Answers
What kind of performance impact does looping anmiations have on a game? 1 Answer