AHUD::Project

Transforms a 3D world-space vector into 2D screen coordinates

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/HUD.h

Include

#include "GameFramework/HUD.h"

Source

/Engine/Source/Runtime/Engine/Private/HUD.cpp

Syntax

FVector Project
(
    FVector Location,
    bool bClampToZeroPlane
) const

Remarks

Transforms a 3D world-space vector into 2D screen coordinates

Returns

The transformed vector

Parameters

Parameter

Description

Location

The world-space position to transform

bClampToZeroPlane

If true, 2D screen coordinates behind the viewing plane (-Z) will have Z set to 0 (leaving X and Y alone)