【unreal4】 虚幻引擎中获取虚拟摄像机图像并导入UI(UMG)实时显示

完成目标:在虚幻引擎中实时获取虚拟摄像机的镜头图像,并在GUI中显示,类似于赛车游戏中左右后视镜显示图像,或者摄像头实时采集图像信息显示在GUI界面中,或者在VR中实现摄像机的实时画面采集。
测试版本:4.26(多数版本都可通用)
需要用到的知识:
1、场景捕获组件2D(SceneCaptureComponent2D)
2、画布渲染目标材质(CanvasRenderTarget2D)
3、UI中的图像模块(image)
功能实现思路:想要实现获取虚拟摄像机图像并导入UI实时显示,就需要一个实时捕获画面并将其转换为动态材质的方式,通过场景捕获组件2D获得实时画面流,将渲染目标材质转换为普通材质,最后在GUI中创建图像,并为该模块赋予图像材质即可。
UE4: Why is the simulation physics option gray for StaticMesh
UE4:静态网格体模拟物理选项为灰色怎么办
【PYQT】How to modify the Label text and attributes in PYQT Design by clicking the button
The purpose of this article is to use pyQt Design to create a graphical Python GUI. When a button is clicked, the text content of a TextLabel changes
Use VS CODE as the compiler, and install PYQT Integration plug-in for graphical. UI compiles, converts.ui into.py, and any other compiler compiles pyQt in the same way
How do I solve the problem that the touch screen and display screen of the Windows operating system are inconsistent
Recently, I encountered a problem: when I use a touchscreen display, the touch function is mapped to my large screen, not the secondary screen, but the touchscreen is actually on the secondary screen. What should I do to solve this problem?
First of all, it should be clear that the misaligned touch screen is not a hardware problem, but a software configuration problem, and Windows offers a perfect solution:
Step 1: Open the control panel

[Unreal4] How to make the UI(UMG) display in real time in unreal Engine
[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.