Unreal Engine 4.x Scripting with C++ Cookbook - Second Edition
by John P. Doran, William Sherif, Stephen Whittle
How it works...
The UINTERFACE/IInterface pair function like they do in other recipes, with the UInterface containing reflection information and other data and the IInterface functioning as the actual interface class that can be inherited from.
The most significant element that allows the function inside IInterface to be exposed to Blueprint is the UFUNCTION specifier. BlueprintCallable marks this function as one that can be called from the Blueprint system.
Any functions exposed to Blueprint in any way require a Category value. This Category value specifies the heading under which the function will be listed in the context menu.
The function must also be marked virtual – this is so that a class that implements the interface via native code ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access