October 2016
Intermediate to advanced
452 pages
9h 47m
English
While the previous recipes have focused on C++ being usable in Blueprint, such as being able to call functions from C++ in Blueprint, and override C++ functions with Blueprint, this recipe shows you the reverse: calling a Blueprint-defined interface function from C++.
UInterface called UTalker/ITalker.UFUNCTION implementation:UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = Talk) void StartTalking();
.cpp file:void ITalker::StartTalking_Implementation()
{
}StaticMeshActor.#include and modify the class declaration to include the talker interface:#include ...
Read now
Unlock full access