5#if WITH_GAMEPLAY_DEBUGGER
7#include "CoreMinimal.h"
8#include "GameplayDebuggerCategory.h"
12class APlayerController;
16class FGameplayDebuggerCategory_Interaction :
public FGameplayDebuggerCategory
20 FGameplayDebuggerCategory_Interaction();
22 virtual void CollectData(APlayerController* OwnerPC, AActor* DebugActor)
override;
24 virtual void CollectInteractionComponentData(AActor* SelectedActor);
25 virtual void CollectServerInteractionComponentData(APlayerController* OwnerPC);
27 virtual void CollectInteractionData(AActor* SelectedActor);
31 virtual void CollectAimAssistData(APlayerController* SelectedPC);
33 virtual void CollectGrabberData(AActor* SelectedActor);
34 virtual void CollectServerGrabberData(APlayerController* OwnerPC);
37 virtual void DrawData(APlayerController* OwnerPC, FGameplayDebuggerCanvasContext& CanvasContext)
override;
39 static TSharedRef<FGameplayDebuggerCategory> MakeInstance();
41 struct FDebugAssistHit
44 FString TargetName =
"Name";
45 FVector TargetLocation = FVector::ZeroVector;
47 float HalfHeight = 0.0f;
54 if(NewHit.
Target ==
nullptr) {
return;}
56 TargetName = NewHit.
Target->GetHumanReadableName();
57 TargetLocation = NewHit.
Target->GetActorLocation();
58 HalfHeight = NewHit.
Target->GetSimpleCollisionHalfHeight();
60 friend FArchive& operator<<(FArchive& Ar, FDebugAssistHit& AssistHit)
62 Ar << AssistHit.TargetName;
63 Ar << AssistHit.TargetLocation;
71 bool bShowServerValues =
false;
72 bool bDebugActorHasController =
false;
73 float GrabberDebugSize = 20.0f;
84 int32 SelectedInteraction;
86 int32 CurrentOverlapActors;
92 FString FocusedActorName;
93 FVector FocusedActorLocation;
95 FString CurrentOverlapActorName;
96 FVector CurrentOverlapActorLocation;
97 FString InteractionActorName;
98 FVector InteractionActorLocation;
104 int32 AimAssistLevel;
106 TArray<FDebugAssistHit> AimAssistTargets;
115 FString GrabbedComponentName;
116 FVector TargetLocation;
117 FVector AttachPointLocation;
121 void Serialize(FArchive& Ar);
124 FRepData ServerDataPack;
DECLARE_LOG_CATEGORY_EXTERN(LogAIToolKit, Display, All)
Represents an aim assist hit.
Definition InteractionData.h:187
AActor * Target
Definition InteractionData.h:196
float Hits
Definition InteractionData.h:194
Structure representing the parameters for aim assist in a game.
Definition InteractionData.h:264