Skip to content

UEyelinkUserWidgetBase::GetDPIScaleFactor

Class: UEyelinkUserWidgetBase

Returns the reciprocal of the current DPI scale factor for this viewport.

Syntax

float UEyelinkUserWidgetBase::GetDPIScaleFactor() const

Return Value

1/DPIScale, or 1.0 if no owning player or viewport is available.

Blueprint

Blueprint: Pure — no exec pins, does not modify state

Remarks

Useful when converting between logical widget coordinates and physical screen pixels (e.g. for positioning calibration targets correctly on high-DPI displays). 1/DPIScale, or 1.0 if no owning player or viewport is available. UFUNCTION