[Unreal4] Get virtual camera image in unreal engine and import it into UI(UMG) for UI camera real-time display
Objectives: Real-time acquisition of virtual camera lens images in Unreal Engine and display in GUI, similar to left and right rearview mirrors display images in racing games, or real-time acquisition of camera image information display in GUI interface, or real-time capture of camera images in VR.
Test version: 4.26 (universal for most versions)
Knowledge needed:
1. SceneCaptureComponent2D
2. CanvasRender target material (CanvasRenderTarget2D)
3. Image module in UI
Function implementation approach: to obtain a virtual camera image real time display and import the UI, you need a real-time capture images and convert them into dynamic material, real-time images were obtained through the scene capture the component 2d flow, converts the render target material to ordinary material, finally to create the image in the GUI, and give the image for the module material.