How to check if actor implements blueprint interface from C++?

This is exactly what I needed, thanks! My goal was to find out if a Blueprint (AnimBlueprint in my case) implemented a C++ Interface.
If you don’t want to include the UKismetSystemLibrary, what the function does is, it checks whether the given Interface StaticClass is actually an Interface and then it calls:


MyObject->GetClass()->ImplementsInterface(UMyInterface::StaticClass());

So you could just call this line if you are sure UMyInterface is an Interface.

4 Likes