There is a funtion in USkeletalMeshComponent
/**
* Sets whether or not to force tick component in order to update animation and refresh transform for this component
* This is supported only in the editor
*/
UFUNCTION(BlueprintCallable, Category = "Components|SkeletalMesh", meta = (DevelopmentOnly, UnsafeDuringActorConstruction = "true"))
void SetUpdateAnimationInEditor(const bool NewUpdateState);