C++ Data Type Snippets
This page contains several code snippets for quickly creating C++ data types that can be used with Blueprints. Use this as reference or as a copy + paste resource as needed.
Interfaces
UINTERFACE(BlueprintType)
class MYPROJECT_API UExample : public UInterface
{
GENERATED_BODY()
};
class MYPROJECT_API IExample
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintNativeEvent, BlueprintCallable)
bool NativeEventExampleMethod();
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable)
bool BlueprintEventExampleMethod();
};Structs
Last updated
Was this helpful?