add location logging
This commit is contained in:
parent
81efae23cc
commit
a6fcdf631f
@ -20,10 +20,10 @@ UPositionReport::UPositionReport()
|
|||||||
void UPositionReport::BeginPlay()
|
void UPositionReport::BeginPlay()
|
||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
FString ObjectName = GetOwner()->GetName();
|
FString ObjectName = GetOwner()->GetName();
|
||||||
|
FString ObjectPos = GetOwner()->GetTransform().GetLocation().ToString();
|
||||||
|
|
||||||
UE_LOG(LogTemp, Warning, TEXT("Position report for %s."), *ObjectName);
|
UE_LOG(LogTemp, Warning, TEXT("%s is at: %s"), *ObjectName, *ObjectPos);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user