What you are doing should work fine. In my custom GameMode I have this:
//.h
UCLASS()
class SPACECOOP_API AGameModeCombat : public AGameMode
{
GENERATED_BODY()
public:
virtual void Tick(float DeltaSeconds) override;
virtual void BeginPlay() override;
}
// .cpp
void AGameModeCombat::BeginPlay()
{
Super::BeginPlay();
// ...
}
void AGameModeCombat::Tick(float DeltaSeconds)
{
Super::Tick(DeltaSeconds);
}
Works fine. If it’s not working for you - post any errors or your code, so we can help figure it out.