My interpretation of the end challenge was slightly different from what was then shown in the video, I was wondering would this be a valid way of achieving the same intended result or is it wrong/bad practise to do it my way?
Looks like you are printing out the owning actor’s name as a string instead of the address on the last line. I think you want %x
and just the Owner pointer instead, i.e. :
UE_LOG(LogTemp, Display, TEXT("Mover address is %x"), Owner);
I know Sam uses %x but that’s technically incorrect and %p
should be used for pointers. %x
is for an Unsigned hexadecimal integer.
Ah, right, I forgot about %p. Indeed I think I was going off of memory of what I had seen in a lecture.
It’s also worth mentioning that %p will print out the correct 64-bit address whereas %x will not.
Ah yes, seems I forgot to change the message before the name, whoops! should read “Mover name is…” my apologies!
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.