Cannot include .generated.h but it exists

benjaml
Mon, 08 Jan 2018 16:56:02 +0000
C++

Hello,

I’m currently trying to add a custom module to my game, but I got a class in this new module that fails to compile because it cannot include it’s generated.h file

Here is the header of the class :

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/GameStateBase.h"
#include
#include "Kea/Characters/Components/HealthComponent.h"
#include "EntityManager.generated.h"

/**
 *
 */
UCLASS()
class SKILLCASTERMODULE_API AEntityManager : public AGameStateBase
{
	GENERATED_BODY()

public:
	AEntityManager();
	std::map<int, AActor*> EntityMap;
	void AddEntity(int, AActor*);
};

This gives me this error :

Cannot open include file: 'EntityManager.generated.h': No such file or directory

8 posts - 5 participants