UAnimNotifyState, how to tell if its NotifyEnd was called by interrupt? – Character & Animation


I derive a class that extends UAnimNotify and override its NotifyBegin and NotifyEnd functions to be able to tell when some specific things happen in my montages.

NotifyEnd is being called by interrupts, when, for example i call AnimInstance->StopAllMontages(); which is great, that’s what I want. However, I cannot seem to find a way to tell apart if the NotifyEnd was called by an interrupt, or if it was called because the montage hit the end of the notify naturally.

Now, i know i can bind to AnimInstance()->OnMontageEnded which provides bInterrupted in the callback, but I’d really like to be able to tell this in the notify, as that looks like the cleanest way.

Any ideas how to implement something like this?



Source link

Leave a Comment