Using GameplayDebuggingHUDComponent in a plugin

Is it possible to use the GameplayDebugger in a plugin?

I’ve added empty versions of the files from

So empty MyGameplayDebuggingComponent (AIDirectorGDC) and MyGameplayDebuggingHUDComponent (AIDirectorGDHUDC). I then figured out that this line

“GameplayDebugger module has to be added to project’s dependency modules to be activated and usable.”

Probably means do this



	PublicDependencyModuleNames.AddRange(new string] { "AIModule", "Core", "CoreUObject", "Engine", "GameplayDebugger", "InputCore", "UMG", "Slate", "SlateCore" });


When I compile, I get this…



1>  AIDirectorGDC.cpp
1>  AIDirectorGDHUDC.cpp
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(12): error C2653: 'EAIDebugDrawDataView': is not a class or namespace name
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(12): error C2065: 'Type': undeclared identifier
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(12): error C2923: 'TEnumAsByte': 'Type' is not a valid template type argument for parameter 'TEnum'
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(15): error C2653: 'EAIDebugDrawDataView': is not a class or namespace name
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(15): error C2061: syntax error: identifier 'Type'
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(15): error C2535: 'FDebugCategoryView::FDebugCategoryView(void)': member function already defined or declared
1>  C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(14): note: see declaration of 'FDebugCategoryView::FDebugCategoryView'
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(16): error C4624: 'FDebugCategoryView': destructor was implicitly defined as deleted
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(14): error C2512: 'TEnumAsByte': no appropriate default constructor available
1>  C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Core\Public\Containers\EnumAsByte.h(13): note: see declaration of 'TEnumAsByte'
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(15): error C2065: 'Description': undeclared identifier
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(15): error C2065: 'InView': undeclared identifier
1>C:\Program Files\Epic Games\4.10\Engine\Source\Developer\GameplayDebugger\Classes\GameplayDebuggingHUDComponent.h(15): fatal error C1903: unable to recover from previous error(s); stopping compilation


Does anyone know if its possible to add the GameplayDebugger to a plugin, and if so what Im doing wrong?

Thanks

I shifted all the code to my main game instead of the plugin, and it still gives the same error. So basically Im doing something wrong when using this class. Has anyone used it and can shed some light on what I’ve done wrong?



// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "GameplayDebuggingComponent.h"
#include "AIDirectorGDC.generated.h"

GameDebugComponent.h
/**
 * 
 */
UCLASS()
class TANKSVSZOMBIES_API UAIDirectorGDC : public UGameplayDebuggingComponent
{
	GENERATED_BODY()	
};


GameDebugComponent.cpp



// Fill out your copyright notice in the Description page of Project Settings.

#include "TanksVsZombies.h"
#include "AIDirectorGDC.h"


GameplayDebuggingHUDComponent.h



#pragma once

#include "GameplayDebuggingHUDComponent.h"
#include "AIDirectorGDHUDC.generated.h"
/**
 * 
 */
UCLASS()
class TANKSVSZOMBIES_API AAIDirectorGDHUDC : public AGameplayDebuggingHUDComponent
{
	GENERATED_BODY()	
};


GameplayDebuggingHUDComponent.cpp



// Fill out your copyright notice in the Description page of Project Settings.

#include "TanksVsZombies.h"
#include "AIDirectorGDHUDC.h"