UiScaleMode
- Namespace: Turian.Engine.UI
- Source File: UiScale.cs
How a screen-space panel's logical size relates to the framebuffer size.
Enum Values
- ConstantPixelSize =
0: One UI unit is one physical pixel. The panel is exactly the framebuffer size. - ScaleWithScreenSize =
1: The panel keeps a reference resolution and scales with the framebuffer, so layouts made for one screen size adapt to others. The scale is the log-space average of the width and height ratios (Unity's default "match 0.5"). - ConstantPhysicalSize =
2: A fixed physical size regardless of resolution. Needs display DPI, which the engine does not surface yet, so this currently behaves likeConstantPixelSize.