当前位置:网站首页>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 .
边栏推荐
- 数组排序2
- MySQL log classification: error log, binary log, query log, slow query log
- 性能和成本的综合架构:单元化架构
- Offline installation of idea plug-in (continuous update)
- Build a maker Education Laboratory for teenagers
- 【UOJ 429】串串划分(Runs)(容斥)+ 有关 Lyndon Tree 及其应用的小小记录
- How does win11 22h2 skip networking and Microsoft account login?
- Creative design principle of youth maker Education
- 再获认可 | 赛宁网安连续上榜《CCSIP 2022中国网络安全产业全景图》
- Recommendation | DBT skills training manual: baby, you are the reason why you live
猜你喜欢

Makefile knowledge rearrangement (super detailed)

建设面向青少年的创客教育实验室

YAPI安装

What are the consequences and problems of computer system restoration

How does win11 change the power mode? Win11 method of changing power mode

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

VM virtual machine has no un bridged host network adapter, unable to restore the default configuration

2022河南萌新联赛第(三)场:河南大学 L - 合成游戏

Steam科学教育赋予课堂教学的创造力

机器学习之桑基图(用于用户行为分析)
随机推荐
10、 Interceptor
Function knowledge points
MySQL - multi table query - Cartesian product sum, correct multi table query, equivalent connection and unequal connection, inner connection and outer connection
How to write the introduction and conclusion of an overview paper?
UE4 多个角色控制权的切换
Wu Enda's machine learning after class exercises - logical regression
Design and implementation of smart campus applet based on cloud development
VM virtual machine has no un bridged host network adapter, unable to restore the default configuration
2、 Internationally renowned project HelloWorld
Keil V5 installation and use
Comparison of the relationship between the number of partitions and the number of reducetask in MapReduce
数组排序2
The difference between positive samples, negative samples, simple samples and difficult samples in deep learning (simple and easy to understand)
MATLAB绘图
ASP. Net core actionfilter filter details
UE4 键盘控制开关灯
5、 Domain objects share data
远坂凛壁纸
Makefile knowledge rearrangement (super detailed)
使用百度飞桨EasyDL完成垃圾分类