ULocalPlayer::GetPixelPoint

This function will give you a point in Pixel Space from a World Space position

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/LocalPlayer.h

Include

#include "Engine/LocalPlayer.h"

Source

/Engine/Source/Runtime/Engine/Private/LocalPlayer.cpp

Syntax

bool GetPixelPoint
(
    const FVector & InPoint,
    FVector2D & OutPoint,
    const FVector2D * OptionalAllotedSize
)

Remarks

This function will give you a point in Pixel Space from a World Space position

Returns

False if there is no viewport, or if the box is behind the camera completely

Parameters

Parameter

Description

InPoint

The point in world space

OutPoint

The point in pixel space

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