We can use C++ to call native UInterface functions from other classes as well. For example, in this recipe, we will make a volume call a function on an object if it implements a particular interface.
Calling native UInterface functions from C++
Getting ready
Follow the previous recipe to get an understanding of casting an Actor pointer to an Interface pointer.
Note that as this recipe relies on the casting technique we used in the previous recipe, it will only work with objects that implement the interface using C++ rather than Blueprint. This is because Blueprint classes are not available at compile time, and so, technically, don't inherit the interface.