Game Development Reference
In-Depth Information
Constant Physical Size
With the
Canvas Scaler Ui Scale Mode
set to
Constant Physical Size
, we see the
following in the inspector:
While the
Scale with Screen Size
works by scaling the
Canvas
, the
Constant Physical
Size
lets you organize elements on a canvas according to your own positional
coordinate preferences. You can specify the units used to proportion or place child
elements within the bounds of the
Canvas
based on your own preset proportions.
This allows you to draw using a
DPI
(or units per inch) appropriate to the drawn
resolution rather than to an actual physical resolution or world space coordinates.
For example, by setting the Unit to Points and
Default DPI
to
96
,
you are specifying that the
Rect Transform
bounds within the
Canvas
is
96
DPI
.
The available units of size are:
• Centimeters
• Millimeters
• Inches
• Points
• Picas
I had to look up what Picas were and yes, it is a real measurement
J
,
the first three measurements are quite self-explanatory, and for Picas
and Points I found this helpful article:
http://support.microsoft.
Unlike the
Scale with Screen Size
option though, the
Constant Physical Size
option does not scale; it is an exact measurement of size that will be reflected
on the target device.