Problem with PlayerViewPoint log

Expected behavior
I want a location/rotation warning log to display in UE output log when I “play” my BE game.

Actual behavior
I get some super nice macro errors which makes no sense.

What have I tried?

  • Re-written my code several times
  • Copy-pasted the code from the course resources
  • Added several #includes
  • Restarted VS

My code

UE_LOG(LogTemp, Warning, TEXT(“Location: %s, Rotation: %s”) *PlayerViewPointLocation.ToString(), *PlayerViewPointRotation.ToString());

You’re missing a comma, should be:
UE_LOG(LogTemp, Warning, TEXT(“Location: %s, Rotation: %s”), *PlayerViewPointLocation.ToString(), *PlayerViewPointRotation.ToString());

1 Like

Privacy & Terms