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號