기술 자료

Unity Engine

Unity Engine

referenceDpi

The DPI that the UI is designed for.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public float referenceDpi { get; set; }

Remarks

When PanelSettings.scaleMode is set to
ConstantPhysicalSize
, Unity compares this value to the actual screen DPI, and scales the UI accordingly in the Game view.
If Unity cannot determine the screen DPI, it uses the PanelSettings.fallbackDpi instead.