Simple UI

1. Let’s create a template first, select any one, and then enter;

 

 2. Create several desktop controls to achieve UI interaction

pause: a UI that is paused in the game;

menu and autoSwitch: the two are combined to achieve the effect of 3D ui.

3. Start editing UI

 【1】Simple edit the UI style;

【2】Add a simple animation process to UI;

 

 【3】Write the main blueprint logic

 Return to the game and press the Q key to pause the game screen, and a simple animation will play when the UI appears and exits the UI.

4. Similar to the principle, we can create a 3D UI and write the corresponding logic of the 3D UI in the level blueprint, or we can write it in the character blueprint;

 【1】Simple UI interface

 [2] In the actor blueprint, add a new Widget component, and then bind the control (Widget) in the previous step to the component, so that it can be visualized in the 3D world;

 【3】Adjust the details panel. If there is a transparency effect in the control, you need to select the blending mode as transparent;

 

 【4】Finally write the blueprint logic,

 【5】Put it into the world;

 

Guess you like

Origin blog.csdn.net/qq_63317956/article/details/128516051