-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathQLDebugHelper.h
More file actions
46 lines (40 loc) · 1.24 KB
/
QLDebugHelper.h
File metadata and controls
46 lines (40 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//----------------------------------------
// Quarter Life
//
// MIT license
//
// (\-/)
// (='.'=)
// (")-(")o
//----------------------------------------
#pragma once
#include "QLUtility.h"
#include "GameFramework/Actor.h"
#include "QLDebugHelper.generated.h"
//------------------------------------------------------------
// usage:
// add to class declaration
// AQLDebugHelper* DebugHelper;
//
// add to BeginPlay()
// DebugHelper = GetWorld()->SpawnActor<AQLDebugHelper>(AQLDebugHelper::StaticClass());
// DebugHelper->AttachToComponent(GetCapsuleComponent(), FAttachmentTransformRules::SnapToTargetIncludingScale);
// DebugHelper->SetActorRelativeLocation(FVector(200.0f, 0.0f, 0.0f));
//------------------------------------------------------------
UCLASS()
class QL_API AQLDebugHelper : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
AQLDebugHelper();
virtual void BeginPlay() override;
virtual void Tick(float DeltaSeconds) override;
UStaticMeshComponent* XAxis;
UStaticMeshComponent* YAxis;
UStaticMeshComponent* ZAxis;
UTextRenderComponent* XAxisLabel;
UTextRenderComponent* YAxisLabel;
UTextRenderComponent* ZAxisLabel;
UBoxComponent* BoxComponent;
};