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

相关推荐
console.log('npc')11 小时前
Python第9课 类学习笔记,前端js语法对照
前端·python·学习
艾莉丝努力练剑15 小时前
【AI大模型接入SDK】解决Unicode码转化以及界面变形问题
前端·c++·人工智能·学习·安全·架构
旖旎夜光21 小时前
【C 语言】(二)模拟实现 strlen、strcpy、strcmp、strstr、memcpy、memmove
c语言·开发语言·笔记·学习
大连好光景1 天前
腾讯云 ADP 前沿部署工程师 (FDE) 学习笔记(二)
笔记·学习·agent开发平台·adp·实战练习
IT空门:门主1 天前
LangChain4j 1.24.0 深度解读:新特性、版本对比与学习路线
java·学习
Shadow(⊙o⊙)1 天前
一年间学习的总结与成长记录——记录自己的18岁
学习
 梦晓天明2 天前
1.Spring学习笔记_IOC入门案例
笔记·学习·spring
sharemylove2 天前
Java 异常处理 学习笔记
java·开发语言·经验分享·笔记·学习
sharemylove2 天前
Java 常用类 学习笔记
java·开发语言·经验分享·笔记·学习
叼烟扛炮3 天前
[LangChain] 学习笔记(026):模型根本没有记忆——「多轮对话」是你每次把历史重发一遍
笔记·学习·langchain