1
FVector ActorLocation = GetActorLocation();

UE_LOG(LogTemp, Log, TEXT("Actor location: %f"), ActorLocation);

1 Answer 1

8

You can't log an FVector directly. You need to convert it to an FString and then use %s (not %f) and finally operator* for dereferencing.

This should work

UE_LOG(LogTemp, Log, TEXT("Actor location: %s"), *ActorLocation.ToString());
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.