How to use USkeletalMeshComponent::PlayAnimation

SparkyTheTorch
Wed, 03 Jun 2020 03:55:01 +0000
Character & Animation

Im trying to play an animation from cpp code, just like the Play Animation node in blueprints, but i cant find any tutorials on how to use the cpp syntax.

or if theres another way to do this lmk pleas

void PlayAnimation
(
    class UAnimationAsset * MyThiccAnimation,
    bool bLooping
)

3 posts - 1 participant