Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnimNotify Not Triggered If Using PlayAnimation Function

AnimNotify events are not triggered if an animation montage is played using the PlayAnimation function. Is this a bug or is there a workaround?

Product Version: UE 4.12
more ▼

asked Jul 12 '16 at 05:14 AM in C++ Programming

avatar image

447 35 37 67

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi calembendell,

I am not experiencing any issue receiving AnimNotify events when using the PlayAnimation( ) function or by using the Montage_Play( ) function.

I created a AnimNotify class as follows:


 #pragma once
 #include "Animation/AnimNotifies/AnimNotify.h"
 #include "FPCustomAnimNotify.generated.h"
 class FPCODE_API UFPCustomAnimNotify : public UAnimNotify
     virtual void Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation) override;    


 #include "FPCode.h"
 #include "FPCustomAnimNotify.h"
 void UFPCustomAnimNotify::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation)
     UE_LOG( LogTemp, Warning, TEXT("ANIMATION FROM MESH: %s "), *MeshComp->GetName( ) );

I can now use this as a AnimNotify within either the Animation Asset or Animation Montage, both will send the log message from the Notify function, inside the UFPCustomAnimNotify class.

Furthermore, I am also able to create notifies using the "New Notify" option and give it a name, in the Animation Asset viewer, which will allow me to get that event in the Animation Blueprint Event Graph.

If you are still having an issue, please post some more information on the code you are writing and what you are trying to do.

more ▼

answered Jul 12 '16 at 03:07 PM

avatar image

ImVawx ♦♦ STAFF
6.8k 114 18 127

avatar image calembendell Jul 14 '16 at 06:33 PM

hey kyle, thanks for the help!
this works great. my notifications still aren't working in blueprints, but that's fine since i'd rather do it in c++ anyway. is there a wiki article or something that has more information on this method? i'm having trouble finding resources for handling animations in c++.

avatar image ImVawx ♦♦ STAFF Jul 14 '16 at 08:37 PM

This is the current documentation on AnimNotifies:


This is aimed at using them within the Animation Blueprint Event Graph and not C++.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question