当前位置:网站首页>UE4 通过重叠事件开启门
UE4 通过重叠事件开启门
2022-08-05 03:29:00 【Zhichao_97】
效果:

步骤:
1.创建一个Actor蓝图

命名为BP_Door_Parent

2.双击打开 BP_Door_Parent,添加一个静态网格体组件

命名为DoorFrame
![]()
3.再添加一个静态网格体组件,命名为Door

4.为DoorFrame、Door分别赋予对应的静态网格体组件


5.在事件图表中添加两个自定义事件,分别名为开门、关门

6.添加一个时间轴命名为开门动画

7.双击打开时间轴,鼠标右键添加两个关键帧,分别为(0,0)和(1,1),轨迹命名为Door_Ahpa

8.将Door拖入来虎丘对它的引用

9.添加 设置相对旋转 节点

10.添加 插值(旋转体) 节点,希望门从0旋转到-80°

11.快捷键C添加注释,命名为Door Animation

接下来,要通过添加一个盒体碰撞来检查角色与门是否重叠,从而来调用相应的开关门事件
12.鼠标右键点击BP_Door_Parent,选择创建子蓝图类

命名为BPC_Door_Overlap

13.双击打开BPC_Door_Overlap,添加一个盒体碰撞组件

14.在视口中调整碰撞体为合适的大小

15.在细节面板中,点击添加组件开始和结束重叠事件

16.在事件图表中添加如下节点,表示只有玩家角色进入时才会触发重叠事件

17.添加如下节点,表示重叠时触发开门事件

18.完善节点

19.添加注释

20.将BPC_Door_Overlap拖入进行测试,效果如开头所示。

边栏推荐
- Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
- Dive into how it works together by simulating Vite
- 【Mysql进阶优化篇02】索引失效的10种情况及原理
- YYGH-13-客服中心
- Walter talked little knowledge | "remote passthrough" that something
- After the large pixel panorama is completed, what are the promotion methods?
- 剑指Offer--找出数组中重复的数字(三种解法)
- Fifteen. Actual combat - MySQL database building table character set and collation
- 包拉链不可用,但是是被另一个包。
- 开发Hololens遇到The type or namespace name ‘HandMeshVertex‘ could not be found..
猜你喜欢

毕设-基于SSM房屋租赁管理系统

Use SuperMap iDesktopX data migration tool to migrate ArcGIS data

【Mysql进阶优化篇02】索引失效的10种情况及原理
![[Software testing] unittest framework for automated testing](/img/80/caedd5cf6dd61c9d75475866613cac.png)
[Software testing] unittest framework for automated testing

【已解决】Unity Coroutinue 协程未有效执行的问题

Flink 1.15.1 Cluster Construction (StandaloneSession)

markdown如何换行——md文件

Spark基础【介绍、入门WordCount案例】

Use Unity to publish APP to Hololens2 without pit tutorial

数据库设计的酸(ACID)碱(BASE)原则
随机推荐
Native js realizes the effect of selecting and canceling all the multi-select boxes
[TA-Frost Wolf_may-"Hundred Talents Project"] Graphics 4.3 Real-time Shadow Introduction
High Item 02 Information System Project Management Fundamentals
Use SuperMap iDesktopX data migration tool to migrate ArcGIS data
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
Talking about data security governance and privacy computing
数组常用方法总结
2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam
Detailed and comprehensive postman interface testing practical tutorial
【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]
burp安装及代理设置
毕设-基于SSM房屋租赁管理系统
Web3.0 Dapps——通往未来金融世界的道路
Mathematics - Properties of Summation Symbols
2022-08-04 第六小组 瞒春 学习笔记
From "useable" to "easy to use", domestic software is self-controllable and continues to advance
[GYCTF2020]EasyThinking
【已解决】Unity Coroutinue 协程未有效执行的问题
Use Unity to publish APP to Hololens2 without pit tutorial