当前位置:网站首页>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 .
边栏推荐
猜你喜欢

综合评价与决策方法

The auxiliary role of rational cognitive educational robot in teaching and entertainment

Acwing刷题

Build a maker Education Laboratory for teenagers

Optimization analysis and efficiency execution of MySQL

1. Excel的IF函数

Phaser(一):平台跳跃收集游戏

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

Recommendation | scholar's art and Tao: writing papers is a skill

数组排序3
随机推荐
How to make your language academic when writing a thesis? Just remember four sentences!
Array sort 1
11、 Exception handler
Yuansaka Lin wallpaper
MySQL log classification: error log, binary log, query log, slow query log
这种是我的vs没连上数据库吗
Postman 导入curl 、导出成curl、导出成对应语言代码
MapReduce中分区数与ReduceTask个数关系比较
使用百度飞桨EasyDL完成垃圾分类
青少年创客教育的创意设计原理
Phaser(一):平台跳跃收集游戏
What are the consequences and problems of computer system restoration
数据仓库
Makefile knowledge rearrangement (super detailed)
二、国际知名项目-HelloWorld
egg-ts-sequelize-CLI
Js手写函数之节流防抖函数
P-norm (2-norm is Euclidean norm)
Acwing brush questions
Credit card fraud detection based on machine learning