AHUD::Project

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

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)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel