当前位置:网站首页>UE4 keyboard control switch light
UE4 keyboard control switch light
2022-07-26 04:30:00 【Zhichao_ ninety-seven】
effect :
UE4 Turn on and off the lights
step :
1. Create a new blueprint class , Name it Light_BP,

2. Add a static mesh body component

3. choice SM_Lamp_Wall Model

4. Add a spotlight component

5. Adjust the light source illumination angle

6. Add a trigger box and resize it

7. Add start overlap and end overlap

8. As shown in the figure below, create a new node and connect
9. Turn off the visibility of the light source ( Let the light be off at first )

10. Add text rendering component

11. Cancel visibility ( Only touching the trigger box displays )

12. Set the visibility of the text

13. Add a boolean variable Whether the light has been turned on

14. When the light is on , Make the variable True
15. Get the value of the variable , If it is False You can turn on the light 
The effect is as follows :

How to rotate the mechanism door when all the lights in the scene are turned on ?
16. Create the following nodes

17. Create a level blueprint

18. Create custom events

19. stay Light_BP Input in ce Open and close the door
20. Select the mechanism door in the viewport interface , Create a reference to the mechanism door in the level blueprint

21. Create the following nodes

22. Set the key frame of the timeline
In this way, you can see the effect of the beginning of the article .
边栏推荐
猜你喜欢

Comprehensive evaluation and decision-making method

Which websites can I visit to check the latest medical literature?

UE4 通过按键控制物体的旋转

机器学习之信用卡欺诈检测

Build a maker Education Laboratory for teenagers

egg-ts-sequelize-CLI

Apisex's exploration in the field of API and microservices

How does win11 set the theme color of the status bar? Win11 method of setting theme color of status bar

p-范数(2-范数 即 欧几里得范数)

综合评价与决策方法
随机推荐
AWS Support Plan
The difference between positive samples, negative samples, simple samples and difficult samples in deep learning (simple and easy to understand)
How to download the supplementary literature?
egg-ts-sequelize-CLI
FFmpeg 视频编码
Li Kou daily question - day 42 -661. Picture smoother
1. If function of Excel
P-norm (2-norm is Euclidean norm)
Life related - ten years of career experience (turn)
dijikstra(先预处理)+dfs,relocation truncated to fit
RTSP/Onvif协议视频平台EasyNVR服务一键升级功能的使用教程
mongoDB为什么快
2022河南萌新联赛第(三)场:河南大学 J - 神奇数字
综合评价与决策方法
Array sort 1
Apisex's exploration in the field of API and microservices
Swiftui one day crash
Support proxy direct connection to Oracle database, jumpserver fortress v2.24.0 release
Compiled by egg serialize TS
数据库连接数查看和修改