跟着官网学UE4(提取干货) Blueprint 3rd Person Game 19 - Playing Our Animation Montage

打开动画蓝图的EventGraph 按住b 添加Branch节点 判断是否按下punch 添加DoOnce节点 保证后续的操作只执行一次 除非松开Punch重置该节点


跟着官网学UE4(提取干货) Blueprint 3rd Person Game 19 - Playing Our Animation Montage_第1张图片

右键 添加custom event 命名为Punch 连接Montage Play 设置asset属性为之前创建的资源文件 doOnce 连接调用CallFunction/Punch


跟着官网学UE4(提取干货) Blueprint 3rd Person Game 19 - Playing Our Animation Montage_第2张图片

右键搜索之前添加的两个Notify 根据isPunching 变量来决定是否跳转到下一个Section 涉及到Montage Set NextSection 修改里面的当前section 和NextSection


跟着官网学UE4(提取干货) Blueprint 3rd Person Game 19 - Playing Our Animation Montage_第3张图片

你可能感兴趣的:(跟着官网学UE4(提取干货) Blueprint 3rd Person Game 19 - Playing Our Animation Montage)