ScaleMode
interludesoftware.tick¶
Interlude.Tick¶
ScaleMode Enum¶
How layout-space coordinates map to screen pixels.
Fields¶
ScaleWithScreenSize 0
Picks a reference resolution per aspect ratio (AspectRatioLayouts) and scales each axis independently from reference to actual screen size. Default.
ConstantPixelSize 1
One layout pixel equals one screen pixel. The reference resolution is the actual screen size every frame; the scale factors are 1. A 100-px button is 100 screen px at every resolution.
ConstantPhysicalSize 2
Layout pixels are sized so that the on-screen result preserves a chosen physical density (ReferenceDpi). At twice the physical pixel density, layout space is half its nominal size; the rendered button retains the same physical size on screen. Falls back to FallbackDpi when UnityEngine.Screen.dpi is unavailable.