UAnimInstance::UpdateAnimation can’t be overridden since it’s not vitual. But that method calls NativeUpdateAnimation(), which is the proper place to do this kind of updates.
void UAnimInstance::NativeUpdateAnimation(float DeltaSeconds)
{
}
So I only needed to extend that method
virtual void NativeUpdateAnimation(float DeltaSeconds) override;
I hope this helps.