In the Animation Montage Editor, NotifyEnd is unexpectedly called when a time marker is in the middle of an AnimNotifyState and the animation preview gets paused. Because the Animation Montage Editor does not fill AnimInstance->NotifyQueue when it is paused. As a result, any existing AnimNotifyState that was in effect at the last frame is considered finished.
This can be inconsistent behavior. The other editors, such as the Animation Sequence editor, do NOT call NotifyEnd in the same scenario. (The downside is that NotifyTick is always called, even when the animation preview is paused.)
If we let the Animation Montage editor behave the same as the other animation editor, the possible solution is to call HandleEvents() function from FAnimMontageInstance::Advance() in AnimMontage.cpp even when bPlaying is false.
void FAnimMontageInstance::Advance(float DeltaTime, struct FRootMotionMovementParams* OutRootMotionParams, bool bBlendRootMotion) { SCOPE_CYCLE_COUNTER(STAT_AnimMontageInstance_Advance); FScopeCycleCounterUObject MontageScope(Montage); if (IsValid()) { // with custom curves, we can't just filter by weight // also if you have custom curve with longer 0, you'll likely to pause montage during that blending time // I think that is a bug. It still should move, the weight might come back later. if (bPlaying) { // ... skip ... } + else + { + HandleEvents(Position, Position, nullptr); + } } }
The customer who reported this issue confirms that it can be fixed by calling HandleEvents() in a case where bPlaying is false.
[Image Removed]
I am not able to find world outliner how to enable it?
How can i modify the param name in EQS node
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
How to achieve HLSL Multiple Render Target in Material blueprints?
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
What method is used to fill polygonal regions when drawing spline mesh at run time?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-197891 in the post.
1 |
Component | UE - Anim - Gameplay |
---|---|
Affects Versions | 5.2, 5.3.1 |
Target Fix | 5.6 |
Created | Oct 13, 2023 |
---|---|
Updated | Oct 3, 2024 |