O'Reilly logo

Mastering Game Development with Unreal Engine 4 - Second Edition by Matt Edmonds

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building and playing the video in-scene

Theoretically, you can now play a video on any static mesh actor or a number of surfaces. Typically, though, it is just a plane, which can be dragged from the modes window right into the level. We'll generate a material by dragging the media texture directly on to the actor we want to use (our plane in this case), and then you can see a dead-simple material is added and is set on the surface. So after doing all of that, as seen here, there's one tricky part left: the audio that will fail to play if we don't right-click the +Add Component for our in-scene screen (plane), add a Media Sound component, and hook its media to our player:

Manually hooking up the audio this way is one of the only complaints ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required