USkeletalMeshComponent::OverrideAnimationData

This overrides current AnimationData parameter in the SkeletalMeshComponent.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h

Include

#include "Components/SkeletalMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/SkeletalMeshComponent.cpp

Syntax

void OverrideAnimationData
(
    UAnimationAsset * InAnimToPlay,
    bool bIsLooping,
    bool bIsPlaying,
    float Position,
    float PlayRate
)

Remarks

This overrides current AnimationData parameter in the SkeletalMeshComponent. This will serialize when the component serialize so it can be used during construction script. However note that this will override current existing data This can be useful if you'd like to make a blueprint with custom default animation per component This sets single player mode, which means you can't use AnimBlueprint with it

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss