Lyra ALS
Interface
创建一个Interface:

在Interface中创建函数:

在需要调用函数的地方添加Interface:

添加后下面就可以看见函数了:

在该创建此函数的地方调用Interface Function,并在Target传入需要执行该函数的Target,传入输入值:

Property Access && BlueprintThreadSafeUpdateAnimation
先创建一个纯函数,用于将通过PropertyAccess得到的MovementComponent Cast为 CharacterMovement从而获取CharacterMovement:(确保ReturnValue中间没有空格)

在BlueprintThreadSafeUpdateAnimation中通过PropertyAccess获取Velocity和MaxWalkSpeed:

Share Rules

Sequence Player + Inertialization
将Sequence Player的Sequence设置为Dynamic并添加OnUpdate函数:

在OnUpdate函数中设置Sequence:

Animation Layer
创建Animation Layer Interface:


在ABP_Base中添加该接口:

在ABP_Base中使用该接口:

专门创建一个用于设置层级动画接口的动画蓝图类ABP_Layers,并设置IdleLyra:

在BP_LyraCharacter中添加LinkAnimClassLayers函数用于将两个不同的动画中的Layer连接起来:


浙公网安备 33010602011771号