工设里世界

隐者艾伦のBLOG

UE4:静态网格体模拟物理选项为灰色怎么办

在虚幻引擎中,静态网格体的模拟物理选项为灰色怎么办?

很简单,造成这个选项灰色的原因是该静态网格体没有碰撞,解决办法为:双击点开静态网格体,点击上面的碰撞菜单,按照实际需求添加碰撞,保存,再回来看就会发现模拟物理选项已经可以点击了。

官方解释:

If true, this body will use simulation. If false, will be ‘fixed’ (ie kinematic) and move where it is told. For a Skeletal Mesh Component, simulating requires a physics asset setup and assigned on the SkeletalMesh asset. For a Static Mesh Component, simulating requires simple collision to be setup on the StaticMesh asset.

如果是勾选状态的,这个物体将使用模拟。如果为取消勾选,将是“固定的”(即运动学),并移动到它被告知的地方。

对于骨骼网格组件,模拟需要一个物理资产设置和分配在骨骼网格资产。

对于一个静态网格组件,模拟需要在StaticMesh资产上设置简单的碰撞。

20220409

www.gongyesheji.org alan

【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

windows的触摸屏和显示屏错位:1.打开控制面板
The Windows touch screen and display screen are misaligned: 1. Open the control panel

(更多…)

[Unreal4] How to make the UI(UMG) display in real time in unreal Engine

虚幻引擎中如何让UI(UMG)在窗口实时显示
How to make the UI(UMG) display in Windows in Unreal Engine
  1. Start by creating the UI file
  2. Unlock level blueprints
  3. Add node connections as shown above: [Event begainPlay] — [Create widget] — [Add to ViewPort]
  4. Select the UI created in the first step in the Create control
  5. Run the program to see if the UI is already displayed on the window.

Note that the name of the Create XXX control node is not fixed. Add the Create control to the level blueprint and select the created GUI file from the class to create a custom UI control.

www.gongeysheji.org

20220408 Allen

[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.

(更多…)