Download

How to render a UMediaTexture into a UTextureRenderTarget2D?

I need to play an mp4 video into a UMediaTexture and take snapshots out of it.
If I could render the UMediaTexture into UTextureRenderTarget2D I could have created UTexture2D snapshots from the render target.
The question is how I render mediaTexture into render target?

Maybe not the most perfect method, but you could use the DrawMaterialToRenderTarget function (https://api.unrealengine.com/INT/BlueprintAPI/Rendering/DrawMaterialtoRenderTarget/index.html) to achieve this - just set up a material that directly copies your UMediaTexture content…