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

相关推荐
微功夫信息技术9 小时前
分层多智能体强化学习驱动的非急救转运公平 - 效率统一调度系统研究与实践
人工智能·学习·算法·动态规划
dadaobusi10 小时前
学习:开源项目Cheshire
学习
撩得Android一次心动11 小时前
Jetpack Compose 知识点整理1【个人用】
android·学习·kotlin·android jetpack·compose
xian_wwq12 小时前
【学习笔记】OWASP Agentic 应用安全(二)
笔记·学习·安全·owasp
小弥儿13 小时前
GitHub今日热榜 | 2026-09-04:Agent省 token 成今日主线
学习·开源·github
前端精髓13 小时前
NestJS 是什么(对着 Spring Boot 一起学习)
spring boot·后端·学习
kyrie_sakura14 小时前
MySQL数据库学习笔记2--系统函数(分组,单行,窗口函数)
数据库·学习·mysql
dadaobusi14 小时前
学习:XS-Gem5参数
学习
LearnYard15 小时前
技术博主实测:2026年大语言模型辅助学习工具横向对比
人工智能·学习·语言模型
M78佐菲16 小时前
HTML学习笔记
linux·笔记·学习·tcp/ip·html