I’m working on a base GameFeatures plugin for Lyra and am trying to better understand its animation in particular.
I duplicated the B_Hero_ShooterMannequin
class to my plugin. The only change I made is that I removed the logic about auto-equipping a weapon, so my pawns (for now) are always unarmed.
This caused my animations to be bugged out such that the random gender change would not have any animations at all. (If I left the default as male, then when it randomly switched to female the pawn wouldn’t animate. If I changed the default to female, the inverse issue would occur.)
I recall in one of the UE Lyra videos a dev comment (Michael Noland?) that the animations are bugged unless/until you equip a weapon, but I don’t remember which video or where. It was an off-handed comment and their fix was to simply auto-equip a pistol.
I was able to mostly fix the animations by explicitly calling LinkAnimClassLayers
on the skeletal mesh after the OnCharacterPartsChanged
event.
The only visible issue now is that when I jump I get 1000s of spam warning messages complaining about:
LogAnimDistanceMatchingLibrary: Warning: DistanceMatchToTarget called with invalid DistanceCurveName or animation (MM_Unarmed_Jump_Fall_Loop) is missing a distance curve.
Any ideas what is causing that or how to fix it? There are virtually no changes in my project compared to ShooterCore except that I’m not equipping weapons. I’m guessing something in that weapon swap code affects the animations in a way that I need to emulate, I’m just not quite sure what.
Please and thanks for any insight!