In Crypt Raider’s Deferencing & Arrow, I’m not getting any output to the log. I’ve compiled the code, then press play, but nothing happens.
Here is my mover.cpp code
#include "Mover.h"
// Sets default values for this component's properties
UMover::UMover()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you don't need them.
PrimaryComponentTick.bCanEverTick = true;
// ...
}
// Called when the game starts
void UMover::BeginPlay()
{
Super::BeginPlay();
// ...
}
// Called every frame
void UMover::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
AActor* Owner = GetOwner();
float MyFloat = 5;
float* YourFloat = &MyFloat;
float FloatValue = *YourFloat;
UE_LOG(LogTemp, Display, TEXT("YourFloat Value: %f"), FloatValue);
UE_LOG(LogTemp, Display, TEXT("Mover Owner Address: %u"), Owner);
}
I believe it’s a very simple error but my eyes just cannot find it.