Unity UI layout adaptation

UI layout adaptation

Canvas Scaler Settings

insert image description here

  • UI Scale Mode选择Scale With Screen Size。
  • Reference Resolution uses 1334x750 or 16:9 ratio, which is the basic canvas size for UI design.
  • Select Expand for Screen Match Mode: Expand the canvas area horizontally or vertically so that the canvas will not be smaller than the reference.

Setting the Canvas Scaler can basically satisfy the adaptation on most devices

Guess you like

Origin blog.csdn.net/qq_28644183/article/details/126361198