Unreal Engine 4.x Scripting with C++ Cookbook - Second Edition
by John P. Doran, William Sherif, Stephen Whittle
How it works...
This recipe uses two UFUNCTION specifiers together: BlueprintNativeEvent and BlueprintCallable. BlueprintCallable has been shown in previous recipes, and is a way of marking your UFUNCTION as visible and invokable in the Blueprint Editor.
BlueprintNativeEvent signifies a UFUNCTION that has a default C++ (native code) implementation, but is also overridable in Blueprint. It's a combination of a virtual function, along with BlueprintImplementableEvent.
For this mechanism to work, the Unreal Header Tool generates the body of your functions so that the Blueprint version of the function is called if it exists; otherwise, it dispatches the method call through to the native implementation.
The Boots class implements IWearable, overriding ...
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