APlayerController::ProjectWorldLocationToScreenWithDistance

Convert a World Space 3D position into a 3D Screen Space position.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

bool ProjectWorldLocationToScreenWithDistance
(
    FVector WorldLocation,
    FVector & ScreenLocation,
    bool bPlayerViewportRelative
) const

Remarks

Convert a World Space 3D position into a 3D Screen Space position.

Returns

true if the world coordinate was successfully projected to the screen.

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