Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/UHeadMountedDisplayFunctionLibra-
Description
Returns the current XR pixel density. This sets the final render target size as a factor of the recommended texture size.
Just before the render target is displayed by the HMD, it's distorted by the device's runtime compositor to counteract the distortion a user would normally experience when looking through the device's lenses. The recommended texture size is the size that will result in no undersampling in the most distorted area of the view after this step is performed.
This function is deprecated, and will return the HMD secondary screen percentage divided by 100.
| Name | GetPixelDensity |
| Type | function |
| Header File | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/HeadMountedDisplayFunctionLibrary.h |
| Include Path | #include "HeadMountedDisplayFunctionLibrary.h" |
UFUNCTION (BlueprintPure, Category="Input|HeadMountedDisplay",
Meta=(DeprecatedFunction, Deprecationmessage="Replaced with GetHMDSecondaryScreenPercentage for 5.6."))
static float GetPixelDensity()
(float) The pixel density to be used in XR mode.