cpp file :
#include "VLDVisual.h"
#include "Kismet/KismetMathLibrary.h"
#include "Kismet/KismetSystemLibrary.h"
#include "Engine/Engine.h"
// Sets default values
AVLDVisual::AVLDVisual()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
FloatMath_ScaleAndSphere = Scale * DefaultSphereRadius;
ActorsDistance = PlayerCharacter->GetDistanceTo(OtherActor->SpotLightPicker);
}
// Called when the game starts or when spawned
void AVLDVisual::BeginPlay()
{
Super::BeginPlay();
}
// Called every frame
void AVLDVisual::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}