[UE] Display moving text in the scene or on the control blueprint

Table of contents

Effect

step

1. Create pictures with text

2. Display moving text in the scene

3. Display on the control blueprint


Effect

step

1. Create pictures with text

Open PS and create a new document with a width of 600 and a height of 50

add text

keep

2. Display moving text in the scene

1. Open the UE editor and import the image made by PS

2. Create a new material, named here "M_Advertise"

Open "M_Advertise", set the blending mode to "Masked" and the shading model to "Unlit"

Add the following nodes to the material graph

3. Create material instances through materials

Open the material instance and adjust the parameter values

Place a plane into the scene and replace the plane's material with the newly created material instance

If you don't want the shadow of the text, you can uncheck "Dynamic Shadow"

You can also cancel "Cast Shadows"

The effect at this time is as follows:

3. Display on the control blueprint

Set the material field in the material to the user interface

Then set the displayed image in the image control in the control blueprint to the material above

Finally, display the control blueprint on the viewport

The effect is as follows:

Reference video:

https://www.bilibili.com/video/BV1Hb4y1K7Fi/?spm_id_from=333.999.0.0&vd_source=36a3e35639c44bb339f59760641390a8

Guess you like

Origin blog.csdn.net/ChaoChao66666/article/details/134815658