- Create a UInterface called PostBeginPlay:
- Open PostBeginPlay.h in Visual Studio and update the UINTERFACE of UPostBeginPlay and add the following virtual method in IPostBeginPlay:
#pragma once#include "CoreMinimal.h"#include "UObject/Interface.h"#include "PostBeginPlay.generated.h"UINTERFACE(meta = (CannotImplementInterfaceInBlueprint))class UPostBeginPlay : public UInterface{ GENERATED_BODY()};/** * */class CHAPTER_08_API IPostBeginPlay{ GENERATED_BODY() // Add interface functions to this class. This is the // class that will be inherited to implement // this interface.public: UFUNCTION(BlueprintCallable, Category = Test) ...