O'Reilly logo
  • LI WEI thinks this is interesting:

AAvatar *avatar = Cast<AAvatar>( UGameplayStatics::GetPlayerPawn(GetWorld(), 0) ); if( !avatar ) return;

From

Cover of Learning C++ by Creating Games with UE4

Note

获取物件的位置和方向