#include <WaypointActor.h>
◆ AWaypointActor()
| AWaypointActor::AWaypointActor |
( |
| ) |
|
13{
14 PrimaryActorTick.bCanEverTick = false;
15
16
17 SceneComponent = CreateDefaultSubobject<USceneComponent>(TEXT(
"Scene Component"));
19
22
23 SphereComponent = CreateDefaultSubobject<USphereComponent>(TEXT(
"Sphere"));
25
27
28
29
30
33}
class UScreenFacingWidgetComponent * ScreenFacingWidgetComponent
Definition WaypointActor.h:34
class USphereComponent * SphereComponent
Definition WaypointActor.h:32
class USceneComponent * SceneComponent
Definition WaypointActor.h:30
TSubclassOf< UUserWidget > WaypointWidgetClass
Definition WaypointActor.h:58
static TSubclassOf< UUserWidget > GetDefaultWidgetBPClass(const FString &Location)
Definition BaseHelpersBPLib.cpp:227
◆ BeginPlay()
| void AWaypointActor::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
52{
53 Super::BeginPlay();
54
57 {
58 UE_LOG(LogTemp,
Warning, TEXT(
"WaypointWidget NULL in Waypoint Actor"));
61 Destroy();
62 }
63 else
64 {
68 {
70 }
71 WaypointWidget->SetVisibility(ESlateVisibility::SelfHitTestInvisible);
72 }
73}
FTimerHandle WidgetSizeTimerHandle
Definition WaypointActor.h:60
UWaypointWidget * WaypointWidget
Definition WaypointActor.h:50
bool bUpdateSize
Definition WaypointActor.h:38
void SetScreenSize()
Definition WaypointActor.cpp:75
float UpdateFrequency
Definition WaypointActor.h:40
◆ SetOwnerPlayerFromController()
| void AWaypointActor::SetOwnerPlayerFromController |
( |
APlayerController * | PlayerController | ) |
const |
36{
38 const ULocalPlayer* LocalPlayer = Cast<ULocalPlayer>(PlayerController->Player);
39 if(LocalPlayer ==
nullptr){UE_LOG(LogTemp,
Error, TEXT(
"Set Owner Player in Waypoint Actor Failed"));
return;}
41
42}
◆ SetOwnerPlayerFromPawn()
| void AWaypointActor::SetOwnerPlayerFromPawn |
( |
APawn * | PlayerPawn | ) |
const |
45{
46 if(PlayerPawn == nullptr || PlayerPawn->GetController() == nullptr){return;}
47 APlayerController* PlayerController = Cast<APlayerController>(PlayerPawn->GetController());
49}
void SetOwnerPlayerFromController(APlayerController *PlayerController) const
Definition WaypointActor.cpp:35
◆ SetScreenSize()
| void AWaypointActor::SetScreenSize |
( |
| ) |
|
|
protected |
76{
78 {
80 return;
81 }
84}
float MaxDistance
Definition WaypointActor.h:44
float MinDrawSize
Definition WaypointActor.h:46
float MaxDrawSize
Definition WaypointActor.h:48
◆ bUpdateSize
| bool AWaypointActor::bUpdateSize = true |
|
protected |
◆ MaxDistance
| float AWaypointActor::MaxDistance = 100.0f |
|
protected |
◆ MaxDrawSize
| float AWaypointActor::MaxDrawSize = 50.0f |
|
protected |
◆ MinDrawSize
| float AWaypointActor::MinDrawSize = 35.0f |
|
protected |
◆ SceneComponent
| class USceneComponent* AWaypointActor::SceneComponent |
|
protected |
◆ ScreenFacingWidgetComponent
| class UScreenFacingWidgetComponent* AWaypointActor::ScreenFacingWidgetComponent |
|
protected |
◆ SenderActor
| AActor* AWaypointActor::SenderActor = nullptr |
|
protected |
◆ SphereComponent
| class USphereComponent* AWaypointActor::SphereComponent |
|
protected |
◆ UpdateFrequency
| float AWaypointActor::UpdateFrequency = 2.5f |
|
protected |
◆ WaypointWidget
◆ WaypointWidgetClass
| TSubclassOf<UUserWidget> AWaypointActor::WaypointWidgetClass |
|
private |
◆ WidgetSizeTimerHandle
| FTimerHandle AWaypointActor::WidgetSizeTimerHandle |
|
private |
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/BaseHelpers/Source/BaseHelpers/Public/Actors/WaypointActor.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/BaseHelpers/Source/BaseHelpers/Private/Actors/WaypointActor.cpp