UE学习记录part16

第20节 echo's attribute

第21节

批量操作

在level blueprint中创建界面

FILL image的tint的alpha改为0

font可以修改shadow让其有阴影



207 slash overlay: creating a c++ class for the overlay widget

修改widget的父类未slash overlay(c++)类

设置完成后



208 Slash HUD:creating a c++ class for the Game HUD

删除level blueprint中的蓝图,改为用hud。因为level blueprint只适用于一张level,不适用于多张level

创建一个HUD蓝图

设置默认的gamemode中的HUD class

创建一个C++ hud类

重新设置父类

删除beginplay蓝图内容,改为用c++实现将widget添加到viewport中



209 setting hud from c++: initializing hud variables from c++

210 updating HUD health: updating the health bar when taking damage

211 echo's death montage: creating the death montage for echo



212 playing echo's death montage: playing the montage on death

添加新的动画状态

在ABP_Echo_MainState中新增变量,设置dead 的blend pose(请注意,在ABP_Echo_MainState,没有主动设置过这些变量,我们都是get,而不是set)

通过ABP_Echo中,link anim graph节点的exposable properties 给ABP_Echo_MainState传递参数(变量传递链路为ABP_Echo为SlashAnimInstance的子类,SlashAnimInstance中的函数NativeUpdateAnimation 函数在每一帧都会被调用,用于更新动画实例中的一些状态变量,这些变量可以在动画蓝图中使用,从而实现根据角色的实际状态动态调整动画的播放。从而ABP_Echo获取到SlashAnimInstance中变量的更新情况,然后再传给ABP_Echo_MainState)

(SlashAnimInstance(通过NativeUpdateAnimation)-》ABP_Echo(通过link anim graph节点)-》ABP_Echo_MainState)

设置blendtime



213 stop enemy attack

新增判断条件,让角色死亡之后IK脚步适应失效

在ABP_Echo中也要通过节点link anim graph将action state同步给ABP_Echo_IK

相关推荐
力学与人工智能14 分钟前
论文分享 | 优化离散损失求解反问题:无需神经网络的快速精确学习
人工智能·神经网络·学习·优化·离散损失·反问题求解·快速准确学习
V搜xhliang02468 小时前
AI智能体的数据安全与合规实践
人工智能·学习·数据分析·自动化·ai编程
无敌的牛9 小时前
redis学习过程
数据库·redis·学习
旅僧11 小时前
Π环境部署(运行 且 无理论讲解)
学习
jushi899911 小时前
Lucas Chess R国际象棋、中国象棋、日本将棋、五子棋训练学习工具游戏软件
学习
自传.12 小时前
尚硅谷 Vibe Coding|第一章 AI 编程基础理论 学习笔记
笔记·学习·尚硅谷·vibe coding
吃好睡好便好12 小时前
改变时间轴的跨度
学习·生活
fox_lht13 小时前
15.3.改进我们之前的输入、输出项目
开发语言·后端·学习·rust
chase。13 小时前
【学习笔记】SimpleVLA-RL:通过强化学习扩展 VLA 训练
笔记·学习
C语言小火车13 小时前
什么时候用智能指针?什么时候用裸指针?
c语言·c++·学习·指针