15 auto Player = GetOwningPlayerController();
16 if (Player ==
nullptr)
18 UE_LOG(LogCarla, Error, TEXT(
"Can't find player controller!"));
28 double Now = FPlatformTime::Seconds();
34 if (Player->ProjectWorldLocationToScreen(
StringList[i].Location, Screen,
true))
52 if (Player->ProjectWorldLocationToScreen(
LineList[i].Begin, Begin,
true) &&
53 Player->ProjectWorldLocationToScreen(
LineList[i].End, End,
true))
55 DrawLine(Begin.X, Begin.Y, End.X, End.Y,
LineList[i].Color,
LineList[i].Thickness);