MyHUD.cpp
void AMyHUD::Tick(float DeltaSeconds)
{
Super::Tick(DeltaSeconds);
const APlayerController* PC = GetOwningPlayerController();
const FVector2D Vec2DSize = UWidgetLayoutLibrary::GetViewportSize(GetWorld());
FVector2D ScreenLocation;
// `FVector VecF1` is the location of F1, the point in world space that I am tracking via screen indicator
// try to project to screen coordinates, ...
This file has been truncated. show original