当前位置:网站首页>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拖入进行测试,效果如开头所示。
边栏推荐
- 【 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
- Spark基础【介绍、入门WordCount案例】
- You may use special comments to disable some warnings. Three ways to report errors
- Redis1:Redis介绍、Redis基本特性、关系型数据库、非关系型数据库、数据库发展阶段
- Package zip is not available, but is referred to by another package.
- ffmpeg 枚举decoders, encoders 分析
- YYGH-13-客服中心
- How to sort multiple fields and multiple values in sql statement
- This year's Qixi Festival, "love vegetables" are more loving than gifts
- 告白数字化转型时代,时速云镌刻价值新起点
猜你喜欢
沃谈小知识 |“远程透传”那点事儿
[Solved] Unity Coroutine coroutine is not executed effectively
Web3.0 Dapps——通往未来金融世界的道路
Web3.0 Dapps - the road to the future financial world
Shell script: for loop and the while loop
Hard power or soft power, which is more important to testers?
冒泡排序与快速排序
如何在WordPress中添加特定类别的小工具
The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
开发Hololens遇到The type or namespace name ‘HandMeshVertex‘ could not be found..
随机推荐
[Software testing] unittest framework for automated testing
.NET应用程序--Helloworld(C#)
Why is the pca component not associated
CPDA|How Operators Learn Data Analysis (SQL) from Negative Foundations
[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters
2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer appears after successful startup of presto
Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
【Daily Training】1403. Minimum Subsequence in Non-Increasing Order
Talking about data security governance and privacy computing
AI+PROTAC | dx/tx completes $5 million seed round
Cybersecurity and the Metaverse: Identifying Weak Links
2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam
36-Jenkins-Job迁移
Based on holding YOLOv5 custom implementation of FacePose YOLO structure interpretation, YOLO data format conversion, YOLO process modification"
冒泡排序与快速排序
Step by step how to perform data risk assessment
public static <T> List<T> asList(T... a) 原型是怎么回事?
Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..
2022 Hangzhou Electric Multi-School 1st Game
Mathematics - Properties of Summation Symbols