ULocalPlayer::GetPixelPoint

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

Choose your operating system:

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

static bool GetPixelPoint
(
    const FSceneViewProjectionData & ProjectionData,
    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